Skip to content

Commit

Permalink
Merge pull request #1451 from Kitware/examples-runner-error-handling
Browse files Browse the repository at this point in the history
fix(ExampleRunner): Fail with nicer error message
  • Loading branch information
floryst committed May 20, 2020
2 parents b23c974 + 0494190 commit 7495fba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Utilities/ExampleRunner/example-runner-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ if (configuration.examples) {

if (exampleCount === 0) {
examples = null;
if (buildExample) {
console.error(`=> Error: Did not find any examples matching ${filterExamples[0]}`);
process.exit(1);
}
}

if (buildExample) {
Expand Down

0 comments on commit 7495fba

Please sign in to comment.