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:
parent
fd62f7f4c8
commit
ea3fceb7b4
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user