Skip to content

Commit 47fc80c

Browse files
authored
fix: exit code 1 on error (#2)
1 parent 8a6c075 commit 47fc80c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/index.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ importSite(parseInt(SITE_ID))
211211
.catch((e) => {
212212
console.log(e);
213213
console.log("\n❌ Error\n");
214+
throw e;
214215
})
215216
.finally(() => {
216217
targetDB.destroy();

0 commit comments

Comments
 (0)