chore: use %w for error wrapping

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude 2026-02-24 15:39:19 +00:00
parent d570c87efc
commit 13ed6d3f76
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -159,7 +159,7 @@ func (i *Installer) cloneRepo(ctx context.Context, org, repo, version, dest stri
cmd := exec.CommandContext(ctx, "gh", args...)
if output, err := cmd.CombinedOutput(); err != nil {
return fmt.Errorf("%s: %s", err, strings.TrimSpace(string(output)))
return fmt.Errorf("%w: %s", err, strings.TrimSpace(string(output)))
}
return nil