Skip to content

Commit f3925b4

Browse files
authored
[xc-admin] Crank : Improve error logging (#580)
* Improve error logging * Rethrow
1 parent 69bafc7 commit f3925b4

File tree

1 file changed

+6
-1
lines changed
  • governance/xc_admin/packages/crank_executor/src

1 file changed

+6
-1
lines changed

governance/xc_admin/packages/crank_executor/src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,5 +213,10 @@ async function run() {
213213
}
214214

215215
(async () => {
216-
await run();
216+
try {
217+
await run();
218+
} catch (err) {
219+
console.error(err);
220+
throw new Error();
221+
}
217222
})();

0 commit comments

Comments
 (0)