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) { if (nameparts.length==1) {
Map<String, String> namedScenario = scenarios.getNamedScenario(scenarioName); Map<String, String> namedScenario = scenarios.getNamedScenario(scenarioName);
if (namedScenario==null) { 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); namedSteps.putAll(namedScenario);
} else { } else {

View File

@ -89,9 +89,9 @@
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
<includes> <includes>
<include>examples</include> <include>examples/**</include>
<include>scripts</include> <include>scripts/**</include>
<include>**.md</include> <include>**/*.md</include>
</includes> </includes>
<filtering>false</filtering> <filtering>false</filtering>
</resource> </resource>