mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/load: return errors from all loaded packages (#3243)
This commit is contained in:
@@ -120,6 +120,9 @@ func (c *Config) load() (*SchemaSpec, error) {
|
||||
if len(pkg.Errors) != 0 {
|
||||
return nil, pkg.Errors[0]
|
||||
}
|
||||
if len(entPkg.Errors) != 0 {
|
||||
return nil, entPkg.Errors[0]
|
||||
}
|
||||
if pkgs[0].PkgPath != entInterface.PkgPath() {
|
||||
entPkg, pkg = pkgs[1], pkgs[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user