diff --git a/vendor/github.com/Masterminds/vcs/errors.go b/vendor/github.com/Masterminds/vcs/errors.go index be7097040d..e45cdc683f 100644 --- a/vendor/github.com/Masterminds/vcs/errors.go +++ b/vendor/github.com/Masterminds/vcs/errors.go @@ -1,6 +1,9 @@ package vcs -import "errors" +import ( + "errors" + "fmt" +) // The vcs package provides ways to work with errors that hide the underlying // implementation details but make them accessible if needed. For basic errors @@ -93,7 +96,7 @@ type vcsError struct { // Error implements the Error interface func (e *vcsError) Error() string { - return e.s + return fmt.Sprintf("%s: %v", e.s, e.e) } // Original retrieves the underlying implementation specific error.