backup: Improve error message for invalid pattern

This commit is contained in:
Alexander Neumann
2018-10-03 11:12:51 +02:00
parent 33dfbf5c38
commit fb31d66951
2 changed files with 6 additions and 1 deletions

View File

@@ -22,6 +22,10 @@ var Wrap = errors.Wrap
// nil, Wrapf returns nil.
var Wrapf = errors.Wrapf
// WithMessage annotates err with a new message. If err is nil, WithMessage
// returns nil.
var WithMessage = errors.WithMessage
// Cause returns the cause of an error. It will also unwrap certain errors,
// e.g. *url.Error returned by the net/http client.
func Cause(err error) error {