include examples and fix error message

This commit is contained in:
Jonathan Shook
2023-02-06 01:04:55 -06:00
parent 8799d287a6
commit 172ef0847d
2 changed files with 5 additions and 4 deletions

View File

@@ -122,7 +122,8 @@ public class NBCLIScenarioParser {
if (nameparts.length==1) {
Map<String, String> namedScenario = scenarios.getNamedScenario(scenarioName);
if (namedScenario==null) {
throw new BasicError("Named step '" + scenarioName + "' was not found.");
throw new BasicError("Unable to find named scenario '" + scenarioName + "' in workload '" + workloadName
+ "', but you can pick from one of: " + String.join(", ", scenarios.getScenarioNames()));
}
namedSteps.putAll(namedScenario);
} else {