mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/internal: catch syntax error due to conflict marker (#1163)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user