diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-10-22 11:22:32 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-10-22 12:59:10 +0000 |
| commit | a573a9f4ffd7a951d0926c083a4737bf0c24527a (patch) | |
| tree | 20eba20e6146c3f4718e823fe5ebd6eaf0017b05 /pkg | |
| parent | 27400f8cb0a0f9ad9e5357425baf0a2c3373e54e (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.go | 2 |
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) } |
