summaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.go b/parse.go
index 91bb35e..bc156df 100644
--- a/parse.go
+++ b/parse.go
@@ -201,7 +201,7 @@ func NewParser(config Config, dests ...interface{}) (*Parser, error) {
if defaultVal, ok := v.Interface().(encoding.TextMarshaler); ok {
str, err := defaultVal.MarshalText()
if err != nil {
- return nil, fmt.Errorf("%v: error marshaling default value to string: %w", spec.dest, err)
+ return nil, fmt.Errorf("%v: error marshaling default value to string: %v", spec.dest, err)
}
spec.defaultVal = string(str)
} else {