handled another error condition
parent
5a1e556549
commit
cd58524dc0
|
@ -45,6 +45,9 @@ func (pattern *Pattern) FindAndLoad(path string, strct interface{}) (bool, error
|
|||
}
|
||||
|
||||
reflectedValueElem := reflectedValue.Elem()
|
||||
if reflect.Struct != reflectedValueElem.Kind() {
|
||||
return doesNotMatter, errExpectedAPointerToAStruct
|
||||
}
|
||||
|
||||
reflectedValueElemType := reflectedValueElem.Type()
|
||||
|
||||
|
|
Loading…
Reference in New Issue