Better error handling #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would be nice if we could avoid the thing we're doing as it's a bit clunky:
And instead just expose the error types directly:
Then people can
errors.Is(...)(or whatever) directly to check without the casting. I don't actually see this exposed in the API via the docs: https://godocs.io/git.coopcloud.tech/decentral1se/iroh-go so there might need to be some automagic conversion done 🤔yeah i was thinking of this too! big fan of being able to use errors.Is if possible