Catch exceptions from main method in fetch script

This commit is contained in:
David Baker 2020-07-23 11:14:26 +01:00
parent 300eac197d
commit d9e8fa34e7

View File

@ -289,4 +289,4 @@ async function main() {
console.log("Done!"); console.log("Done!");
} }
main().then((ret) => process.exit(ret)); main().then((ret) => process.exit(ret)).catch(e => process.exit(1));