Conversation
….Errorf (Mantis #1233)
Migrate go-git error construction to core.E(op, msg, cause) — the
canonical core/go primitive. Replaces ad-hoc core.NewError / core.Errorf
call sites in:
- go/git.go — resultError uses core.E with the op label
- go/service.go — gitServiceErrorWithArgs uses the first arg as op
discriminator (more specific than the previous
flat "git.service" label)
- go/tests/cli/git/main.go — non-test CLI driver migrated
Build, vet, test all clean (sandbox-safe cache).
Out of scope (left as follow-up):
- core.Cmd git execution (push/pull) stays in place — those helpers
don't have *core.Core access and need attached stdio for interactive
SSH prompts. Migration to c.Process() would lose interactive behaviour
and require public API changes.
- 2 result-discards in production code (audit.sh dim) — separate ticket.
Closes tasks.lthn.sh/view.php?id=1233
Co-authored-by: Codex <noreply@openai.com>
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughError handling refactored across three files to consistently use Changes
Review rate limit: 4/5 reviews remaining, refill in 12 minutes. Comment |



Brings v0.14.0 to main: refactor(go) using core.E consistently. Closes Mantis #1233.
Summary by CodeRabbit
Release Notes