-
-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: show RPC error message in terminal instead of failing #1967
Conversation
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
WalkthroughThis update primarily involves modifying import paths and altering functions to handle errors locally within the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- internal/cli/workers/command.go (7 hunks)
- internal/cli/workers/render.go (5 hunks)
Additional comments not posted (6)
internal/cli/workers/command.go (3)
11-11
: Verify the compatibility of the newjobs
package version.Ensure that the new version of the
jobs
package (v4
) is compatible with the existing codebase and does not introduce breaking changes.
54-55
: LGTM! The function call changes are approved.The changes to handle errors internally within the
showWorkers
function improve robustness.
Line range hint
92-141
: LGTM! The function changes are approved.The changes to handle errors internally and render error messages improve error handling and ensure that error messages do not affect the information displayed by other plugins.
internal/cli/workers/render.go (3)
12-12
: Verify the compatibility of the newjobs
package version.Ensure that the new version of the
jobs
package (v4
) is compatible with the existing codebase and does not introduce breaking changes.
Line range hint
22-43
: LGTM! The function changes are approved.The changes to handle errors during table rendering in the
WorkerTable
function improve user feedback by displaying error messages in the table.
Line range hint
91-115
: LGTM! The function changes are approved.The changes to handle errors during table rendering in the
JobsTable
function improve user feedback by displaying error messages in the table.
Reason for This PR
ref: #1952
Description of Changes
License Acceptance
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
PR Checklist
[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]
git commit -s
).CHANGELOG.md
.Summary by CodeRabbit
Bug Fixes
Improvements