Skip to content

fix(ux): add operation context to error messages at command boundary#133

Merged
skevetter merged 1 commit into
mainfrom
fix/cmd-error-context
Apr 25, 2026
Merged

fix(ux): add operation context to error messages at command boundary#133
skevetter merged 1 commit into
mainfrom
fix/cmd-error-context

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

Wraps 6 bare return err / return nil, err sites at the cmd/ boundary (cmd/up.go and cmd/logs.go) with fmt.Errorf context so that errors reaching the top-level log.Fatal handler tell the user what operation failed:

  • load devsy config — config loading in up command
  • start workspacedevsyUp call in executeDevsyUp
  • lock workspaceclient.Lock in devsyUp
  • wait for machineStartWait in devsyUpMachine
  • get agent infoAgentInfo in devsyUpMachine
  • get workspace for logsworkspace.Get in logs command

Wrap 6 bare error returns in cmd/up.go and cmd/logs.go with
fmt.Errorf so that when errors reach the top-level log.Fatal
handler, users see what operation was being attempted.
@netlify

netlify Bot commented Apr 25, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

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

@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 32 minutes and 42 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 32 minutes and 42 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: 6b668712-d995-4675-b77b-e58d6da524d9

📥 Commits

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

📒 Files selected for processing (2)
  • cmd/logs.go
  • cmd/up.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 8c6740f into main Apr 25, 2026
47 checks passed
@skevetter
skevetter deleted the fix/cmd-error-context branch April 25, 2026 22:05
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