mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 07:35:48 -05:00
fix(srcinfo): avoid panic on srcinfo failed parse (#2645)
avoid panic on srcinfo failed parse. fixes #2640
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user