1
0
mirror of https://github.com/Jguer/yay.git synced 2026-05-06 04:46:10 +02:00

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

avoid panic on srcinfo failed parse. fixes #2640
This commit is contained in:
Jo 2025-07-19 10:46:16 +02:00 committed by GitHub
parent fd62f7f4c8
commit ea3fceb7b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,