Skip to content

Commit

Permalink
fix(cypress-runner): use failing exit code if directory to serve is n…
Browse files Browse the repository at this point in the history
…ot found
  • Loading branch information
christopherthielen committed Oct 6, 2019
1 parent d4f4768 commit a28670e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const error = (message) => console.log(`cypress-runner: ${message}`)
function launchCypress(cypressCmd, path, desiredPort, nospa) {
if (!fs.existsSync(path)) {
error(`${resolve(path)} doesn't exist, can't serve files`);
process.exit();
process.exit(-1);
}

let serve_process, cypress_process;
Expand Down

0 comments on commit a28670e

Please sign in to comment.