From e3fd705f523b6fdb9fa2f0eaf7fd78437cfe8987 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Mon, 13 May 2024 22:34:19 +0200 Subject: [PATCH] App: Show scale errors always in debug mode --- Elwig/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elwig/App.xaml.cs b/Elwig/App.xaml.cs index da3ad8a..1803d7f 100644 --- a/Elwig/App.xaml.cs +++ b/Elwig/App.xaml.cs @@ -159,7 +159,7 @@ namespace Elwig { list.Add(Scale.FromConfig(s)); } catch (Exception e) { list.Add(new InvalidScale(s.Id)); - if (s.Required) + if (Config.Debug || s.Required) MessageBox.Show($"Unable to create scale {s.Id}:\n\n{e.Message}", "Scale Error", MessageBoxButton.OK, MessageBoxImage.Error); }