From b40aa66985699fbfeb3a62b3e2f67a69a4a0c39e Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 11 Feb 2017 14:22:04 +0100 Subject: [PATCH] errors: Add method Wrapf --- src/restic/errors/wrap.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/restic/errors/wrap.go b/src/restic/errors/wrap.go index 5906bd617..99d6e88ba 100644 --- a/src/restic/errors/wrap.go +++ b/src/restic/errors/wrap.go @@ -18,3 +18,7 @@ var Errorf = errors.Errorf // Wrap wraps an error retrieved from outside of restic. Wrapped so that this // package does not appear in the stack trace. 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