Skip to content

Commit 72babbf

Browse files
authored
Exit on error code 1 (#428)
1 parent 8cc7c5c commit 72babbf

File tree

2 files changed

+12061
-10
lines changed

2 files changed

+12061
-10
lines changed

bin/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ async function main() {
5656
try {
5757
spec = await loadSpec(pathToSpec, { log: output !== "STDOUT" });
5858
} catch (err) {
59+
process.exitCode = 1; // needed for async functions
5960
throw new Error(red(`❌ ${err}`));
6061
}
6162

0 commit comments

Comments
 (0)