Skip to content

Commit

Permalink
fix(db): create and drop always result in exit code 1
Browse files Browse the repository at this point in the history
fixes #550

Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
  • Loading branch information
wzrdtales committed Sep 8, 2018
1 parent 3f662ca commit d32644c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/commands/db.js
Expand Up @@ -32,7 +32,7 @@ function executeDB (internals, config, callback) {

db.close();
if (typeof callback === 'function') callback(err);
else process.exit(1);
else process.exit(err ? 1 : 0);
}
);
} else if (internals.mode === 'drop') {
Expand All @@ -51,7 +51,7 @@ function executeDB (internals, config, callback) {

db.close();
if (typeof callback === 'function') callback(err);
process.exit(1);
else process.exit(err ? 1 : 0);
}
);
}
Expand Down

0 comments on commit d32644c

Please sign in to comment.