Eliminate misuses of errors.Wrapf
In many cases code is calling errors.Wrapf with an arbitrary string instead of a format string. This causes confusing errors when the wrapped error message contains '%' characters. This change replaces such calls with calls to errors.Wrap. Signed-off-by: John Starks <jostarks@microsoft.com>
This commit is contained in:
@@ -107,7 +107,7 @@ func newPipeSet(ctx context.Context, io runtime.IO) (*pipeSet, error) {
|
||||
if err == nil {
|
||||
err = e
|
||||
} else {
|
||||
err = errors.Wrapf(err, e.Error())
|
||||
err = errors.Wrap(err, e.Error())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user