You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: wrap all bare error returns with context (#107)
* refactor: replace interface{} with typed CaptureResults in snapshot capture
* fix: wrap all bare error returns with context
Wrap ~80 bare `return err` and `return nil, err` statements across 24
production files with `fmt.Errorf("context: %w", err)` to satisfy the
project convention of never returning unwrapped errors.
Four intentional exceptions remain:
- dotfiles.go:301 — filepath.WalkDir callback convention
- install.go:150 — installer.Run already wraps thoroughly
- installer.go:226 — Apply already wraps thoroughly
- auth/login.go:154 — pollOnce returns user-facing messages
Also reverted wrapping in listBackupsSorted since callers check
os.IsNotExist (which does not traverse %w chains).
0 commit comments