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 would be nice to have cause() take a "name" argument that walks the chain of causes until it finds one with the given name. That way you could do something like:
someHttpError.cause('SocketError')
Otherwise, people might end up depending on the exact cause chain (e.g., an HTTP error, then a socket error), which might break if a layer in between adds a useful intermediate message.
It would be nice to have cause() take a "name" argument that walks the chain of causes until it finds one with the given name. That way you could do something like:
Otherwise, people might end up depending on the exact cause chain (e.g., an HTTP error, then a socket error), which might break if a layer in between adds a useful intermediate message.
CC @jclulow @tjfontaine
The text was updated successfully, but these errors were encountered: