Skip to content

Commit 876119c

Browse files
author
Virgil
committed
Merge pull request '[agent/claude:opus] Fix CodeRabbit findings. Verify each against current code, f...' (#3) from agent/fix-coderabbit-findings--verify-each-aga into main
2 parents 575cf3b + a955ce4 commit 876119c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

git.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,12 @@ func (e *GitError) Error() string {
290290
stderr := strings.TrimSpace(e.Stderr)
291291

292292
if stderr != "" {
293-
return coreerr.E("", fmt.Sprintf("git command %q failed: %s", cmd, stderr), nil).Error()
293+
return fmt.Sprintf("git command %q failed: %s", cmd, stderr)
294294
}
295-
return coreerr.E("", fmt.Sprintf("git command %q failed", cmd), e.Err).Error()
295+
if e.Err != nil {
296+
return fmt.Sprintf("git command %q failed: %v", cmd, e.Err)
297+
}
298+
return fmt.Sprintf("git command %q failed", cmd)
296299
}
297300

298301
// Unwrap returns the underlying error for error chain inspection.

0 commit comments

Comments
 (0)