Skip to content

Commit

Permalink
Pass number to process.exit - not boolean. Fix #300
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Nov 8, 2023
1 parent 3fc099c commit 600f7ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/webgme-new-seed
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ program
program.project = project;
manager.new(program, function(err) {
// Seed generation has a bug where it needs to be killed manually :/
process.exit(!!err);
if (err) {
process.exit(1);
} else {
process.exit();
}
});
})
.parse(process.argv);

0 comments on commit 600f7ff

Please sign in to comment.