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

Add Error::message to set a custom error message #408

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ModProg
Copy link

@ModProg ModProg commented Jan 14, 2024

This enables updating the message without creating a binding.

@ModProg
Copy link
Author

ModProg commented Jan 14, 2024

Same could be considered for data.

This allows usages as return Err(jsonrpc::Error::internal_error().message("this is what happned"))

@ModProg ModProg force-pushed the custom-message-builder-like branch 4 times, most recently from 3be3a14 to ad8f1ec Compare January 14, 2024 15:28
This enables updating the message without creating a binding.
@ModProg ModProg changed the title Add Error::method to set a custom error message Add Error::message to set a custom error message Mar 5, 2024
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