Skip to content

fix(ux): use %w for proper error chain wrapping#134

Merged
skevetter merged 1 commit into
mainfrom
fix/errorf-chain-wrapping
Apr 25, 2026
Merged

fix(ux): use %w for proper error chain wrapping#134
skevetter merged 1 commit into
mainfrom
fix/errorf-chain-wrapping

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

  • Replace %v with %w in fmt.Errorf calls across pkg/util/hash/hash.go and pkg/command/credential_supported.go so callers can use errors.Is/errors.As to inspect underlying errors
  • Simplify fmt.Errorf("%v", err) in pkg/survey/survey.go to return err directly, preserving the error chain without a redundant wrapper

Replace %v with %w in fmt.Errorf calls so callers can use errors.Is/As
to inspect underlying errors. Simplify redundant fmt.Errorf("%v", err)
to return err directly.
@netlify

netlify Bot commented Apr 25, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit ad9ac08
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/69ed17e9cc01830008692c06

@coderabbitai

coderabbitai Bot commented Apr 25, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@skevetter has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 31 minutes and 23 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 31 minutes and 23 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bdfcdc31-3385-45d7-8f03-a9a411bc3564

📥 Commits

Reviewing files that changed from the base of the PR and between 42418d1 and ad9ac08.

📒 Files selected for processing (3)
  • pkg/command/credential_supported.go
  • pkg/survey/survey.go
  • pkg/util/hash/hash.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@skevetter
skevetter merged commit 1360313 into main Apr 25, 2026
47 checks passed
@skevetter
skevetter deleted the fix/errorf-chain-wrapping branch April 25, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant