Skip to content

Commit 311c429

Browse files
authored
Merge pull request #65 from open-rpc/fix/error-code
fix: exit with error code if errors exist
2 parents 566ff1d + 289de2e commit 311c429

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/reporters/console.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ export default (callResults: any[], schema: OpenRPC) => {
7474
console.log("Success: ", colors.green(metrics.success.toString()));
7575
console.log("Errors: ", colors.red(metrics.errors.toString()));
7676
console.log("==========");
77+
process.exit(metrics.errors);
7778
};

0 commit comments

Comments
 (0)