Skip to content

Commit

Permalink
fix: exit with error code if errors exist
Browse files Browse the repository at this point in the history
fixes #64
  • Loading branch information
shanejonas committed Jul 31, 2019
1 parent 566ff1d commit 9b78b74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/reporters/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,7 @@ export default (callResults: any[], schema: OpenRPC) => {
console.log("Success: ", colors.green(metrics.success.toString()));
console.log("Errors: ", colors.red(metrics.errors.toString()));
console.log("==========");
if (metrics.errors > 0) {
process.exit(metrics.errors);
}
};

0 comments on commit 9b78b74

Please sign in to comment.