diff --git a/entc/internal/snapshot.go b/entc/internal/snapshot.go index f5866bb88..c2fe6e47c 100644 --- a/entc/internal/snapshot.go +++ b/entc/internal/snapshot.go @@ -218,7 +218,13 @@ func IsBuildError(err error) bool { if strings.HasPrefix(err.Error(), "entc/load: #") { return true } - for _, s := range []string{"syntax error", "previous declaration", "invalid character", "could not import"} { + for _, s := range []string{ + "syntax error", + "previous declaration", + "invalid character", + "could not import", + "found '<<'", + } { if strings.Contains(err.Error(), s) { return true }