mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-28 17:51:06 -06:00
formatting bug fix
This commit is contained in:
parent
91ef327cb7
commit
c19ce84693
@ -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!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user