Skip to content

Conversation

@Phoenix2066
Copy link

Summary

This PR improves error messages returned by git command helper methods by
adding contextual wrapping while preserving the original error.

What changed

  • Standardized error handling across git command methods
  • Wrapped command execution errors with descriptive context using %w
  • No changes to command behavior or return values

Why

Previously, many failures surfaced as generic errors (e.g. exit status 128),
which made it difficult to identify which git operation failed.
Adding context improves debuggability without impacting callers.

Scope & compatibility

  • No API changes
  • No behavior changes
  • Existing callers continue to work unchanged

@bakayu
Copy link
Member

bakayu commented Feb 11, 2026

Hey, thank you for the PR!
I am a little busy right now, will review this on the weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants