Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit with a non-zero code when database connection fails #43

Open
khawaga opened this issue Jul 23, 2019 · 0 comments
Open

Exit with a non-zero code when database connection fails #43

khawaga opened this issue Jul 23, 2019 · 0 comments

Comments

@khawaga
Copy link

khawaga commented Jul 23, 2019

I've noticed that when the database connection returns an error the CLI still exits with status 0. This is a bit confusing as the connection failed and migrations were not run. I believe the program should exit with an error status such as 1.

This would be helpful when running migrations in a CI environment for example or in other cases where you'd like to break execution if the migrations were not applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant