diff --git a/preload.go b/preload.go index 2c981a79..9eaf0ab0 100644 --- a/preload.go +++ b/preload.go @@ -31,7 +31,7 @@ func equalAsString(a interface{}, b interface{}) bool { } func Preload(scope *Scope) { - if scope.Search.preload == nil { + if scope.Search.preload == nil || scope.HasError() { return }