better error message

This commit is contained in:
rusefillc 2021-12-20 02:06:24 -05:00
parent c763244d74
commit 96fb4b4638
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ public class ConfigField {
scale = scale.substring(1, scale.length() - 1);
String[] parts = scale.split("/");
if (parts.length != 2)
throw new IllegalArgumentException("Two parts of division expected in " + scale);
throw new IllegalArgumentException(name + ": Two parts of division expected in " + scale);
factor = Double.parseDouble(parts[0]) / Double.parseDouble(parts[1]);
} else {
factor = Double.parseDouble(scale);