diff options
Diffstat (limited to 'reflect.go')
| -rw-r--r-- | reflect.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -59,15 +59,15 @@ func cardinalityOf(t reflect.Type) (cardinality, error) { switch t.Kind() { case reflect.Slice: if !scalar.CanParse(t.Elem()) { - return unsupported, fmt.Errorf("cannot parse into %v because we cannot parse into %v", t, t.Elem()) + return unsupported, fmt.Errorf("cannot parse into %v because %v not supported", t, t.Elem()) } return multiple, nil case reflect.Map: if !scalar.CanParse(t.Key()) { - return unsupported, fmt.Errorf("cannot parse into %v because we cannot parse into the key type %v", t, t.Elem()) + return unsupported, fmt.Errorf("cannot parse into %v because key type %v not supported", t, t.Elem()) } if !scalar.CanParse(t.Elem()) { - return unsupported, fmt.Errorf("cannot parse into %v because we cannot parse into the value type %v", t, t.Elem()) + return unsupported, fmt.Errorf("cannot parse into %v because value type %v not supported", t, t.Elem()) } return multiple, nil default: |
