diff options
| author | Alex Flint <[email protected]> | 2019-10-21 11:42:03 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-21 11:42:03 -0700 |
| commit | 45d0915afc6ce6efd1e625df07e3c7f4b72b8cc3 (patch) | |
| tree | 6057628cf239ef00196575cc918b6548fc15a335 /parse.go | |
| parent | 84e7a764db3c0b7970633340bc988630a8dd5dc2 (diff) | |
Remove %w for compatibility with go<1.13
Diffstat (limited to 'parse.go')
| -rw-r--r-- | parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |
