Repository navigation
fix: suppress printing the newline when a status error has no output - #7543
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
vvoland
approved these changes
Nov 24, 2026
Collaborator
|
Oh, can you fix the signoff? |
When a `cli.StatusError` was returned by a plugin, the error would be printed with `Fprintln` even if the message was empty. This avoids the call entirely if `cli.StatusError` is returned and the error text is empty to allow plugins to return non-zero exit statuses without printing anything. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
jsternberg
force-pushed
the
cli-error-newline-suppress
branch
from
November 24, 2026 16:37
34ef118 to
b0a3c17
Compare
Contributor
Author
|
Fixed the signoff. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When a
cli.StatusErrorwas returned by a plugin, the error would be printed withFprintlneven if the message was empty. This avoids the call entirely ifcli.StatusErroris returned and the error text is empty to allow plugins to return non-zero exit statuses without printing anything.Related to docker/compose#14382.