[xc-admin] Crank : Improve error logging (#580)

* Improve error logging

* Rethrow
This commit is contained in:
guibescos 2023-02-10 16:21:49 -06:00 committed by GitHub
parent 69bafc74c1
commit f3925b4447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -213,5 +213,10 @@ async function run() {
}
(async () => {
await run();
try {
await run();
} catch (err) {
console.error(err);
throw new Error();
}
})();