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
Improve error messages with context wrapping (#24)
* fix: wrap bare returned errors with context
Add fmt.Errorf("context: %w", err) wrapping on previously bare
`return err` sites in auth, shell, npm, and dotfiles. Per
CLAUDE.md convention, callers should get contextual error chains.
* test: skip filesystem-permission tests when running as root
Tests that rely on chmod 0500/0000 to trigger permission denied
silently succeed under root because root bypasses DAC checks,
leaving `err == nil` where the test expected a non-nil error and
panicking on the follow-up nil dereference. Guard these with
`os.Geteuid() == 0` skips; they still run as a non-root user or
in standard CI.
* refactor: make brewInstallURL const
The existing comment described it as a test seam, but no test
reassigns it. A const prevents accidental mutation; if a test
ever needs to override the URL, add a proper seam then.
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments