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

resolves issues/173 checking and handling invalid message property for CALL_ERROR in ParseMessage #186

Merged

Conversation

sc-atompower
Copy link
Contributor

#173

Currently in the (Endpoint).ParseMessage() fun there are several type cast checks in place. However for CALL_ERROR message types there is no type case check for error code thus allowing for a runtime panic. This pull request resolve this issue and returns a conventional error message.

@lorenzodonini
Copy link
Owner

@sc-atompower Thanks for submitting this and also for writing a test! Nice fix.

@lorenzodonini lorenzodonini merged commit 3ecaf00 into lorenzodonini:master Apr 17, 2023
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