fix(srcinfo): avoid panic on srcinfo failed parse (#2645)

avoid panic on srcinfo failed parse. fixes #2640
This commit is contained in:
Jo authored and GitHub committed 2025-07-19 10:46:16 +02:00
1 parent fd62f7f4c8
commit ea3fceb7b4
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ func NewService(dbExecutor db.Executor, cfg *settings.Configuration, logger *tex
) (*Service, error) {
srcinfos, err := ParseSrcinfoFilesByBase(logger, pkgBuildDirs, true)
if err != nil {
panic(err)
return nil, err
}
return &Service{
dbExecutor: dbExecutor,