formatting bug fix

This commit is contained in:
Jonathan Shook 2020-03-24 20:58:21 -05:00
parent 91ef327cb7
commit c19ce84693

View File

@ -67,7 +67,7 @@ public class NBCLIScenarioParser {
List<String> cmds = scenarios.getNamedScenario(scenarioName); List<String> cmds = scenarios.getNamedScenario(scenarioName);
if (cmds == null) { if (cmds == null) {
throw new BasicError("Unable to find named scenario '" + scenarioName + "' in workload '" + workloadName throw new BasicError("Unable to find named scenario '" + scenarioName + "' in workload '" + workloadName
+ ", but you can pick from " + String.join(",", scenarios.getScenarioNames())); + "', but you can pick from " + String.join(",", scenarios.getScenarioNames()));
} }
Pattern cmdpattern = Pattern.compile("(?<name>\\w+)((?<oper>=+)(?<val>.+))?"); Pattern cmdpattern = Pattern.compile("(?<name>\\w+)((?<oper>=+)(?<val>.+))?");
@ -113,9 +113,9 @@ public class NBCLIScenarioParser {
private final String name; private final String name;
private final String operator; private final String operator;
private final String value; private final String value;
private String scenarioName;
public CmdArg(String name, String operator, String value) { public CmdArg(String name, String operator, String value) {
this.name = name; this.name = name;
this.operator = operator; this.operator = operator;
this.value = value; this.value = value;
@ -138,7 +138,7 @@ public class NBCLIScenarioParser {
} else if (isFinalSilent()) { } else if (isFinalSilent()) {
return this; return this;
} else if (isFinalVerbose()) { } else if (isFinalVerbose()) {
throw new BasicError("Unable to reassign value for named scenario: '" + value + "'"); throw new BasicError("Unable to reassign value for locked param '" + name + operator + value + "'");
} else { } else {
throw new RuntimeException("impossible!"); throw new RuntimeException("impossible!");
} }