Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Migration Failure Exits with Error Code 0 #10

Closed
grahamc opened this Issue Mar 1, 2012 · 0 comments

Comments

Projects
None yet
2 participants

grahamc commented Mar 1, 2012

$ ./node_modules/db-migrate/bin/db-migrate --config database.json -e dev up; echo $?
[ERROR] { [Error: connect ECONNREFUSED]
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect' }
0

I would have expected it to exit with a non-zero to indicate a failure, allowing scripts to bail out appropriately.

@kunklejr kunklejr closed this in bc952d3 Mar 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment