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

Expose the underlying error message when the TP-Link API returns an unknown error #23

Merged
merged 1 commit into from
May 3, 2022

Conversation

timrogers
Copy link
Contributor

This improves the handling of unknown errors returned by TPLink, including the error message in the thrown error as well as the error code.

Just seeing a code is rather opaque and you end up having to add debugging code into the library to actually see what came back. Exposing the message avoids this.

This improves the handling of unknown errors returned by TPLink,
including the error message in the thrown error as well as the
error code.

Just seeing a code is rather opaque and you end up having to add
debugging code into the library to actually see what came back.
Exposing the message avoids this.
@timrogers
Copy link
Contributor Author

@dickydoouk Thanks for taking the time to build and publish this package! It's so great to see what the open source community can do ❤️ I'd love it if you'd take the time to review my proposed changes so we can make this project even better.

P.S. I'd be happy to help you to maintain this library too, if you like!

@dickydoouk dickydoouk merged commit 8a19e69 into dickydoouk:master May 3, 2022
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.

None yet

2 participants