summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/jessevdk/go-flags/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/jessevdk/go-flags/error.go')
-rw-r--r--vendor/github.com/jessevdk/go-flags/error.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/jessevdk/go-flags/error.go b/vendor/github.com/jessevdk/go-flags/error.go
index 05528d8d28..73e07cfc29 100644
--- a/vendor/github.com/jessevdk/go-flags/error.go
+++ b/vendor/github.com/jessevdk/go-flags/error.go
@@ -97,6 +97,10 @@ func (e ErrorType) String() string {
return "unrecognized error type"
}
+func (e ErrorType) Error() string {
+ return e.String()
+}
+
// Error represents a parser error. The error returned from Parse is of this
// type. The error contains both a Type and Message.
type Error struct {