diff options
Diffstat (limited to 'scripts/verify-all.js')
-rw-r--r-- | scripts/verify-all.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/verify-all.js b/scripts/verify-all.js index 0b6397b..fe7eefc 100644 --- a/scripts/verify-all.js +++ b/scripts/verify-all.js | |||
@@ -26,6 +26,12 @@ const decompress = (src, dest) => new Promise((resolve, reject) => { | |||
26 | }); | 26 | }); |
27 | }); | 27 | }); |
28 | 28 | ||
29 | // Let Promise errors crash the script | ||
30 | process.on('unhandledRejection', (error) => { | ||
31 | console.log('Promise rejection:', error); | ||
32 | process.exit(1); | ||
33 | }); | ||
34 | |||
29 | // Let us work in an async environment | 35 | // Let us work in an async environment |
30 | (async () => { | 36 | (async () => { |
31 | // Read list of all recipes | 37 | // Read list of all recipes |
@@ -88,4 +94,4 @@ const decompress = (src, dest) => new Promise((resolve, reject) => { | |||
88 | } | 94 | } |
89 | 95 | ||
90 | console.log('All recipes are valid.'); | 96 | console.log('All recipes are valid.'); |
91 | })(); \ No newline at end of file | 97 | })(); |