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

Fixed exitcodes #37

Merged
merged 1 commit into from Dec 16, 2014
Merged

Fixed exitcodes #37

merged 1 commit into from Dec 16, 2014

Conversation

Tjeerd
Copy link
Contributor

@Tjeerd Tjeerd commented Dec 15, 2014

I've adjusted the code of the patch classes so exceptions which are generated there are not catched in the same class as well. This way the exceptions bubble up to the Application which can respond more appropriate.

As a result exceptions in the patch itself will cause an exitcode of 1, which I think is more correct. I my specific case deployments using Capistrano will now fail if a DB patch fails.

…the application so the correct exit code will be generated.
sndpl pushed a commit that referenced this pull request Dec 16, 2014
@sndpl sndpl merged commit cb24fff into dbpatch:master Dec 16, 2014
@sndpl
Copy link
Member

sndpl commented Dec 16, 2014

Thanks, merged it and released v1.3.0.

@Tjeerd Tjeerd deleted the correct-exitcode branch December 17, 2014 11:02
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

Successfully merging this pull request may close these issues.

None yet

2 participants