nearinfinity/node-db-migrate — Issue #10: Migration Failure Exits with Error Code 0
Author: grahamc
Created: 2012-03-01 00:49:40+00:00
State: open

```
$ ./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.