From 7ccdb78b8c059de31e5b568b43f4547142d9aeb4 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Sun, 27 Sep 2020 21:42:48 -0700 Subject: Handle errors from bad arg on write --- grapher/Models/AccelGUI.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'grapher/Models/AccelGUI.cs') diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs index c9c4ed0..15a0c0e 100644 --- a/grapher/Models/AccelGUI.cs +++ b/grapher/Models/AccelGUI.cs @@ -3,7 +3,6 @@ using grapher.Models.Mouse; using grapher.Models.Options; using grapher.Models.Serialized; using System; -using System.Drawing; using System.Windows.Forms; namespace grapher @@ -97,7 +96,7 @@ namespace grapher } else { - WriteButton.Text = "bad args"; + throw new Exception($"Bad arguments: \n {SettingsManager.ErrorStringFrom(errors)}"); } } -- cgit v1.2.3