diff options
| author | Jacob Palecki <[email protected]> | 2020-09-27 21:42:48 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-27 21:42:48 -0700 |
| commit | 7ccdb78b8c059de31e5b568b43f4547142d9aeb4 (patch) | |
| tree | 992816135721cf33e41a373b161cfaee5d104d84 /grapher/Models/AccelGUI.cs | |
| parent | Fix tab behavior (diff) | |
| download | rawaccel-7ccdb78b8c059de31e5b568b43f4547142d9aeb4.tar.xz rawaccel-7ccdb78b8c059de31e5b568b43f4547142d9aeb4.zip | |
Handle errors from bad arg on write
Diffstat (limited to 'grapher/Models/AccelGUI.cs')
| -rw-r--r-- | grapher/Models/AccelGUI.cs | 3 |
1 files changed, 1 insertions, 2 deletions
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)}"); } } |