-
Notifications
You must be signed in to change notification settings - Fork 698
Errorf
should be able to wrap errors
#244
Comments
The package predates the error wrapping functionality of If we did update the |
Okay so bear with me as I only started dabbling in Go about a month ago or so. I didn't know about the restriction that The main reason I'd be interested in I could look into making a pull request to add this |
yup, the usual form is 'outer most: outer: inner: inner most' |
Huh, it seems the caveats about errors needing to be the last argument to |
I expected
Errorf
to mimicfmt.Errorf
's behavior of wrapping errors. Alas, that was not the case.I was wondering if this is intentional or not. If it's intentional, then is there a way of formatting wrapping errors as '(wrapped error): outer error'?
Here's a playground link explaining what I'm talking about.
https://play.golang.org/p/yDjjs_8GsSY
The text was updated successfully, but these errors were encountered: