You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 12, 2026. It is now read-only.
Enhance error messages to include actionable suggestions and next steps, helping users recover from errors more easily.
Current Behavior
Error: no todo list specified. Use --list flag or run 'bc4 todo set' to set a default
Proposed Behavior
Error: No default todo list configured
To fix this, you can either:
1. Set a default: bc4 todo set
2. Specify a list: bc4 todo add "Task" --list "My List"
3. View available lists: bc4 todo lists
Learn more: bc4 todo --help
Implementation
Create helper functions in internal/errors/ for common error scenarios
Include contextual suggestions based on the operation
Add "Learn more" links to relevant help
Common Error Scenarios to Improve
No project selected
No todo list selected
Authentication expired
Resource not found
Permission denied
Invalid URL format
Files to Modify
Create internal/errors/suggestions.go
Update error handling in cmd/todo/add.go
Update error handling in cmd/card/add.go
Update error handling in cmd/message/post.go
etc.
Reference
GitHub CLI provides excellent error messages with suggestions:
gh pr create
? No default remote found. Would you like to set origin as the default? Yes
Summary
Enhance error messages to include actionable suggestions and next steps, helping users recover from errors more easily.
Current Behavior
Proposed Behavior
Implementation
internal/errors/for common error scenariosCommon Error Scenarios to Improve
Files to Modify
internal/errors/suggestions.gocmd/todo/add.gocmd/card/add.gocmd/message/post.goReference
GitHub CLI provides excellent error messages with suggestions:
Extracted from PR #79 discoverability analysis