summaryrefslogtreecommitdiff
path: root/grapher/Models
diff options
context:
space:
mode:
Diffstat (limited to 'grapher/Models')
-rw-r--r--grapher/Models/AccelGUI.cs2
-rw-r--r--grapher/Models/Serialized/SettingsManager.cs29
2 files changed, 1 insertions, 30 deletions
diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs
index c08313b..f9291c1 100644
--- a/grapher/Models/AccelGUI.cs
+++ b/grapher/Models/AccelGUI.cs
@@ -153,7 +153,7 @@ namespace grapher
}
else
{
- throw new Exception($"Bad arguments: \n {SettingsManager.ErrorStringFrom(errors)}");
+ throw new Exception($"Bad arguments:\n\n{errors}");
}
}
diff --git a/grapher/Models/Serialized/SettingsManager.cs b/grapher/Models/Serialized/SettingsManager.cs
index f13ba81..f5bb1f1 100644
--- a/grapher/Models/Serialized/SettingsManager.cs
+++ b/grapher/Models/Serialized/SettingsManager.cs
@@ -47,35 +47,6 @@ namespace grapher.Models.Serialized
#endregion Properties
#region Methods
-
- public static string ErrorStringFrom(SettingsErrors errors)
- {
- StringBuilder builder = new StringBuilder();
- bool yPresent = errors.y?.Count > 0;
-
- if (yPresent)
- {
- builder.AppendLine("\nx:");
- }
-
- foreach (var error in errors.x)
- {
- builder.AppendLine(error);
- }
-
- if (yPresent)
- {
- builder.AppendLine("\ny:");
-
- foreach (var error in errors.y)
- {
- builder.AppendLine(error);
- }
- }
-
- return builder.ToString();
- }
-
public SettingsErrors TryUpdateActiveSettings(DriverSettings settings)
{
var errors = TryUpdateAccel(settings);