Skip to content

Commit 7e38cb3

Browse files
committed
fix(local): log and preserve package count before continuing on db error
1 parent a23b901 commit 7e38cb3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/clients/clientimpl/localmatcher/localmatcher.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ func (matcher *LocalMatcher) MatchVulnerabilities(ctx context.Context, invs []*e
7272
db, err := matcher.loadDBFromCache(ctx, pkg.Ecosystem())
7373

7474
if err != nil {
75+
cmdlogger.Errorf("%v", err)
76+
77+
results = append(results, []*osvschema.Vulnerability{})
78+
7579
continue
7680
}
7781

0 commit comments

Comments
 (0)