Print rejections that reach the root handler

This commit is contained in:
J. Ryan Stinnett
2021-06-22 13:35:39 +01:00
parent 997f2c21bf
commit 48dc1ab396
+4 -1
View File
@@ -145,4 +145,7 @@ async function main() {
} }
} }
main().catch(() => process.exit(1)); main().catch(err => {
console.error(err);
process.exit(1);
});