Skip to content

Fixed exitcodes - #37

Merged
sndpl merged 1 commit into
dbpatch:masterfrom
Tjeerd:correct-exitcode
Dec 16, 2014
Merged

Fixed exitcodes#37
sndpl merged 1 commit into
dbpatch:masterfrom
Tjeerd:correct-exitcode

Conversation

@Tjeerd

@Tjeerd Tjeerd commented Dec 15, 2014

Copy link
Copy Markdown
Contributor

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

sndpl commented Dec 16, 2014

Copy link
Copy Markdown
Member

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.

2 participants