diff options
Diffstat (limited to 'scripts/run-tool.js')
| -rwxr-xr-x | scripts/run-tool.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/scripts/run-tool.js b/scripts/run-tool.js index 3a1c86e..1e67c3c 100755 --- a/scripts/run-tool.js +++ b/scripts/run-tool.js @@ -163,11 +163,7 @@ async function dumpResult() { process.stdout.write(`\x1b[2m----------------------\n${data}\n----------------------\x1b[0m\n`); } -(async () => { - try { - await main(); - } catch (err) { - console.error(err?.message || err); - process.exit(1); - } -})(); +main().catch((err) => { + console.error(err); + process.exit(1); +});
\ No newline at end of file |
