Skip to content

Commit

Permalink
fix: fail the seed cli
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed Mar 12, 2022
1 parent f4df0fe commit a46b369
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion database/seed-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ program.command('earnings')
options.captures_count
)
.then(() => {
log.warn("done!");
process.exit(0);
}).catch(e => {
log.error("error", e);
log.warn("seed failed!");
process.exit(1);
})
log.warn("done");
log.warn("executed...");
});

program.parse();

0 comments on commit a46b369

Please sign in to comment.