summaryrefslogtreecommitdiff
path: root/reflect.go
diff options
context:
space:
mode:
Diffstat (limited to 'reflect.go')
-rw-r--r--reflect.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/reflect.go b/reflect.go
index be202dc..1806973 100644
--- a/reflect.go
+++ b/reflect.go
@@ -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: