Skip to content

Keep same error handling for main cli plugin execution#1789

Merged
gtardif merged 1 commit intodocker:mainfrom
gtardif:fix_docker_agent_error_handling
Feb 19, 2026
Merged

Keep same error handling for main cli plugin execution#1789
gtardif merged 1 commit intodocker:mainfrom
gtardif:fix_docker_agent_error_handling

Conversation

@gtardif
Copy link
Collaborator

@gtardif gtardif commented Feb 19, 2026

processError was invoked for preRun but not for Run when executing through docker cli plugin

@gtardif gtardif requested a review from a team as a code owner February 19, 2026 09:51
Copy link

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Found one inconsistency in the new error handling code. The change correctly mirrors the error handling pattern from PersistentPreRunE, but uses a different context reference that should be aligned for consistency.

The logic itself is correct for adding error handling to RunE, which was missing before. Good catch on the inconsistency in the PR description!

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
@gtardif gtardif force-pushed the fix_docker_agent_error_handling branch from a663fc9 to f16acc9 Compare February 19, 2026 09:56
@gtardif gtardif merged commit 6b07e9b into docker:main Feb 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments