Skip to content

use the shared Buildx error summary helper - #511

Merged
crazy-max merged 2 commits into
docker:masterfrom
crazy-max:buildx-error-message
Sep 13, 2026
Merged

crazy-max merged 2 commits into
docker:masterfrom
crazy-max:buildx-error-message

Conversation

@crazy-max

Copy link
Copy Markdown
Member

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max requested a review from a team September 11, 2026 12:18
Comment thread src/main.ts
Comment on lines -169 to +170
} else if (res.stderr.length > 0) {
err = Error(`buildx bake failed with: ${res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'}`);
} else {
err = Error(`buildx bake failed with: ${Buildx.getErrorMessage(res.stderr)}`);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The condition is no longer needed? Could this result in buildx bake failed with: <empty message> ? Or does the helper produce something like a "unknown error" in that case?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah the helper returns unknown error if stderr empty.

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@crazy-max
crazy-max merged commit e04a701 into docker:master Sep 13, 2026
54 checks passed
@crazy-max
crazy-max deleted the buildx-error-message branch September 13, 2026 10:45
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