forked from TrueCloudLab/restic
errors: Add method Wrapf
This commit is contained in:
parent
76c06c5f2a
commit
b40aa66985
1 changed files with 4 additions and 0 deletions
|
@ -18,3 +18,7 @@ var Errorf = errors.Errorf
|
||||||
// Wrap wraps an error retrieved from outside of restic. Wrapped so that this
|
// Wrap wraps an error retrieved from outside of restic. Wrapped so that this
|
||||||
// package does not appear in the stack trace.
|
// package does not appear in the stack trace.
|
||||||
var Wrap = errors.Wrap
|
var Wrap = errors.Wrap
|
||||||
|
|
||||||
|
// Wrapf returns an error annotating err with the format specifier. If err is
|
||||||
|
// nil, Wrapf returns nil.
|
||||||
|
var Wrapf = errors.Wrapf
|
||||||
|
|
Loading…
Add table
Reference in a new issue