-
Notifications
You must be signed in to change notification settings - Fork 3
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
launcher exits the VM with status code 0 when an exception is thrown VertxApplicationHooks #15
Comments
Thanks for reporting this @bitkid |
this is not working |
Please share a small snippet that fails your expectations with 5.0.0.CR3 |
https://gist.github.com/bitkid/30456f73833b9074e3ac39704256d4e2 this is the simple test code. i put it into a fat jar and start it with java -cp the-all.jar Launchie it writes "throw exception" in the shell and when i do echo $? it returns 0 |
ok, so i looked at your tests .. do i have to do System.exit(app.launch()) ? if so, you can just close the ticket and document it somewhere? |
ah ok .. System.exit() is only called when the exit code is 2 .. what's the reason behind that? because if the beforeStartingVertx throws exit code is 1 @tsegismont |
if i put a throw Exception("bla") into one of the application hooks (f.ex. in afterVertxStarted) the JVM exits with status 0. i think it should not.
The text was updated successfully, but these errors were encountered: