-
Notifications
You must be signed in to change notification settings - Fork 284
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
Exception gets swallowed #1421
Comments
John - do you haven impression this used to work with older vibed and current behaviour is a regression ? Or was it always like that ? |
I modified your example code slightly to log the the information into a file by adding this line: setLogFile("websocket.log", LogLevel.debug_); I saw that the exception was in fact getting logged into the file. Once the error is caught, a message of I personally think this is an undesired behavior. An uncaught exception should:
So really, changing the line to this would solve the issue: logError("WebSocket handler failed: %s", e); I will create a pull request in a few. |
@jdeschenes Thank's for looking in to this. I currently work around it by catching the exception myself, printing it, then rethrowing, but it would be much better to have it correct by default. |
I modified
examples/websocket
to throw an exception on connection, like this:When I connect to the socket,
hello
is printed, but there is no sign of the exception and the program continues uninterrupted.The text was updated successfully, but these errors were encountered: