Skip to content

Commit

Permalink
fix: Fix error logging on failed migration
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Jun 29, 2020
1 parent 53a916f commit 310dd29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/migrate-down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ migrate.load({

runMigrations(set, 'down', program.args[0], function (err) {
if (err) {
log('error', err)
log.error('error', err)
process.exit(1)
}

Expand Down
2 changes: 1 addition & 1 deletion bin/migrate-up
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function loadAndGo () {
// Run
;(program.clean ? cleanUp : up)(set, function (err) {
if (err) {
log('error', err)
log.error('error', err)
process.exit(1)
}
log('migration', 'complete')
Expand Down

0 comments on commit 310dd29

Please sign in to comment.