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

Improve error message for unknown cluster message functions #5687

Merged
merged 1 commit into from
Oct 18, 2017

Conversation

Crunsher
Copy link
Contributor

@Crunsher Crunsher commented Oct 18, 2017

fixes #5686


resultMessage->Set("result", afunc->Invoke(origin, message->Get("params")));
Log(LogWarning, "JsonRpcConnection")
<< "Call to non-existent function '" << method << "' from endpoint '" << m_Identity << "'.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor code style remark: I would put 2 lines in an if-condition into parenthesis. Not sure if compilers treat that well enough.

@Crunsher
Copy link
Contributor Author

It's just one statement, precompilers remove all whitespace anyways

@dnsmichi dnsmichi added this to the 2.8.0 milestone Oct 18, 2017
@dnsmichi dnsmichi added area/distributed Distributed monitoring (master, satellites, clients) area/log Logging related labels Oct 18, 2017
@dnsmichi dnsmichi changed the title Improve error message for unknow functions Improve error message for unknown cluster message functions Oct 18, 2017
@dnsmichi dnsmichi merged commit 55e7089 into master Oct 18, 2017
@dnsmichi dnsmichi deleted the fix/jsonrpc-error-message-#5686 branch October 18, 2017 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/distributed Distributed monitoring (master, satellites, clients) area/log Logging related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ugly stacktrace with mismatching versions in cluster
2 participants