Catch exceptions from main method in fetch script
This commit is contained in:
@@ -289,4 +289,4 @@ async function main() {
|
||||
console.log("Done!");
|
||||
}
|
||||
|
||||
main().then((ret) => process.exit(ret));
|
||||
main().then((ret) => process.exit(ret)).catch(e => process.exit(1));
|
||||
|
||||
Reference in New Issue
Block a user