Skip to content

Commit

Permalink
pkg/manager: improve error reporting
Browse files Browse the repository at this point in the history
If bug info parsing failed, print more details about the problem.
  • Loading branch information
a-nogikh committed Oct 22, 2024
1 parent 27400f8 commit a573a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/crash.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (cs *CrashStore) BugList() ([]*BugInfo, error) {
for _, dir := range dirs {
info, err := cs.BugInfo(dir, false)
if err != nil {
return nil, fmt.Errorf("failed to process crashes/%s", dir)
return nil, fmt.Errorf("failed to process crashes/%s: %w", dir, err)
}
ret = append(ret, info)
}
Expand Down

0 comments on commit a573a9f

Please sign in to comment.