gome-assistant
gome-assistant copied to clipboard
Error handling?
I know error handling in Go is verbose, but I'm amazed by the lack of errors in many places here.
For instance, calling a service does not return any indication on whether or not it succeeded? How are errors notified / should they be handled?
Apart from that: brilliant library, thanks a lot!
I'm amazed by the lack of errors in many places here
Simply because I got the happy path working first for a hobby project 😜
You're right, service/state calls should return an Error, which of course can just be ignored for users who don't care.
Simply because I got the happy path working first for a hobby project stuck_out_tongue_winking_eye
Oh yes that makes total sense.
Question is: would you accept PRs that add that, even if they were to break API compatibility?
Yeah for sure, I'll accept PRs. I'm okay with breaking changes right now. But this particular change could return an Error from various service/state calls and not be a breaking change since callers don't have to capture it in a var if they don't care.