diff options
| author | Alex Flint <[email protected]> | 2021-04-19 14:50:05 -0700 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2021-04-19 14:50:05 -0700 |
| commit | a80336128cfb61156ebdfad6ab8018aaa567429e (patch) | |
| tree | 2c776fe80cbef06e095bdfbebf3f268c3ab1540a /reflect.go | |
| parent | 57f610284f51a9f47c359bb782d7e30f3d6d075d (diff) | |
more test coverage
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: |
