You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's very tedious to work with a library where the main function does not have a defined error set. The problem is that it uses an AnyWriter, which returns anyerror!... for most functions. Here are some options to fix this:
Stop using AnyWriter
Collapse every error that comes from a writer call to a single error.WriteError
The text was updated successfully, but these errors were encountered:
I think the best approach is to not use AnyWriter at all, and pass an anytype. This has the advantage of having a defined arror set, that can be computed at comptime. Thus, errors are not collapsed either.
It's very tedious to work with a library where the main function does not have a defined error set. The problem is that it uses an
AnyWriter
, which returnsanyerror!...
for most functions. Here are some options to fix this:error.WriteError
The text was updated successfully, but these errors were encountered: