Skip to content

Commit

Permalink
fix: exit code 1 on error (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet authored Nov 4, 2024
1 parent 8a6c075 commit 47fc80c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ importSite(parseInt(SITE_ID))
.catch((e) => {
console.log(e);
console.log("\n❌ Error\n");
throw e;
})
.finally(() => {
targetDB.destroy();
Expand Down

0 comments on commit 47fc80c

Please sign in to comment.