-
Notifications
You must be signed in to change notification settings - Fork 697
Wrap argument name cause
could be err
#32
Comments
I buy the argument in your third point. Feel free to send a PR, don't On Wed, 25 May 2016, 09:12 Mat Ryer, notifications@github.com wrote:
|
Actually, the error passed to Wrap and friends it's the cause. Error x is But still send a PR to rename cause to err in the formal parameters. Its On Wed, 25 May 2016, 09:18 Dave Cheney, dave@cheney.net wrote:
|
ok
|
`errors.wrap` existed to avoid the conflict between the type, `errors.cause` and the formal parameter `cause`. The parameter was renamed to err in #32 so there is no need for the helper.
move tiup/components/errdoc/errdoc-gen to errors/errdoc-gen
This might seem a little strange, but I think
cause
as an argument name toWrap
andWrapf
is unnecessary. I wonder iferr
might be good enough?Here are some reasons:
error
err
so you could just tab past itVery minor issue, and mainly I'm trying to save myself two key-presses each time I use this (which I will every day).
The text was updated successfully, but these errors were encountered: