Skip to content

Commit

Permalink
Exit with non-zero exit code from yarn mintable. (#51)
Browse files Browse the repository at this point in the history
Thanks @blimmer – On failure, catch rejected promises and exit with a non-zero exit code
to break the build.
Relates to #43
  • Loading branch information
blimmer authored Jan 31, 2020
1 parent 52a8a2f commit b078e48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scripts/mintable.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,7 @@
default:
break
}
})()
})().catch((e) => {
console.error(e);
process.exit(1);
})

0 comments on commit b078e48

Please sign in to comment.