Skip to content

Commit

Permalink
logging create command result
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicius0026 committed Jan 19, 2017
1 parent 74b41e2 commit dddfc35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/rethinkdb-migrate
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ function runCreate (argv) {
const options = Mask(buildOptions(argv), 'name,migrationsDirectory,relativeTo')

Migrations.create(options)
.then(console.log.bind('Finished successfully'))
.catch(console.error.bind('Error while running migrations:'))
}

function runMigrationUp (argv) {
Expand Down

0 comments on commit dddfc35

Please sign in to comment.