Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #32 from bugsnag/bengourley/non-zero-exit
Browse files Browse the repository at this point in the history
fix(cli): Exit with non-zero status code when there is a failure
  • Loading branch information
bengourley authored Jan 8, 2019
2 parents 2adfff0 + 4844c8b commit bad2a3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,7 @@ Promise.resolve()
}
})
.then(() => {
return tasks.run().catch(err => {});
return tasks.run().catch(err => {
process.exitCode = 1;
});
});

0 comments on commit bad2a3d

Please sign in to comment.