aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-10-22 11:22:32 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-10-22 12:59:10 +0000
commita573a9f4ffd7a951d0926c083a4737bf0c24527a (patch)
tree20eba20e6146c3f4718e823fe5ebd6eaf0017b05 /pkg
parent27400f8cb0a0f9ad9e5357425baf0a2c3373e54e (diff)
pkg/manager: improve error reporting
If bug info parsing failed, print more details about the problem.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/manager/crash.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/manager/crash.go b/pkg/manager/crash.go
index 009ac2f15..938c0b834 100644
--- a/pkg/manager/crash.go
+++ b/pkg/manager/crash.go
@@ -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)
}