Merge pull request #531 from cortex/patch-1

Correct error message
This commit is contained in:
Jinzhu 2015-06-15 20:52:06 +08:00
commit 3c28ceea66
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 {
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
}