Skip to content

Commit

Permalink
correct exit code for protractor command
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Åström committed Nov 2, 2017
1 parent 003d5b4 commit 984cb08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protractor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const protractor = {
launcher = require(p);
} catch (__) {
console.log('Protractor could not be found by after-work.js! Please verify that it has been added as a devDependencies in your package.json');
process.exit(0);
process.exit(1);
}
}
const config = protractor.getConfig(argv.config);
Expand All @@ -58,7 +58,7 @@ const protractor = {
const files = globby.sync(config.specs);
if (!files.length) {
console.log('No files found for:', config.specs);
process.exit(0);
process.exit(1);
}

launcher.init('', config);
Expand Down

0 comments on commit 984cb08

Please sign in to comment.