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

feat: added a way to get error messages #138

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

Conversation

duncan412
Copy link

No description provided.

@hyperized
Copy link
Owner

Hi @duncan412,

I'm not willing to change the interface on this to return a string, I don't want to burden the client with having to parse both.

I would accept throwing an exception, is that something that you could do?

@hyperized
Copy link
Owner

Come to think of it, alternatively, I would also accept having a method that you can use to retrieve the error code from that you can optionally call.

@duncan412
Copy link
Author

Sorry for my late response! I reverted my changes and added a way to catch the exception and get information from it. Could this work for you?

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