Correct error message

This commit is contained in:
Joakim Lundborg 2015-06-11 16:14:36 +02:00
parent cde05781a0
commit 14dde4b9f2
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ func Preload(scope *Scope) {
if value.Kind() == reflect.Slice && value.Type().Elem().Kind() == reflect.Interface { if value.Kind() == reflect.Slice && value.Type().Elem().Kind() == reflect.Interface {
value = value.Index(0).Elem() value = value.Index(0).Elem()
} }
scope.Err(fmt.Errorf("can't found field %s in %s", key, value.Type())) scope.Err(fmt.Errorf("can't find field %s in %s", key, value.Type()))
return return
} }