forked from ALHP/ALHP.GO
error handling if findPkgFiles is called without a valid dbpkg
This commit is contained in:
@@ -698,6 +698,10 @@ func (p *ProtoPackage) findPkgFiles() error {
|
||||
return err
|
||||
}
|
||||
|
||||
if p.DbPackage == nil {
|
||||
return fmt.Errorf("unable to find Pkgfiles without dbpakg present")
|
||||
}
|
||||
|
||||
var realPkgs []string
|
||||
for _, realPkg := range p.DbPackage.Packages {
|
||||
realPkgs = append(realPkgs, realPkg)
|
||||
|
Reference in New Issue
Block a user