Skip to content

Commit

Permalink
fixing console.log when script ends
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicius0026 committed Jan 27, 2017
1 parent 468876d commit 55b353c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/rethinkdb-migrate
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function runCreate (argv) {
const options = Mask(buildOptions(argv), 'name,migrationsDirectory,relativeTo')

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

Expand Down

0 comments on commit 55b353c

Please sign in to comment.