From b0aab107640cb8eba3554be498131beef82ca7ac Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 11 Sep 2026 14:00:12 +0200 Subject: [PATCH] use the shared Buildx error summary helper Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 3f64d44..f51e40f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -166,8 +166,8 @@ actionsToolkit.run( // if there are no warnings found, return the first line of stdout err = Error(res.stdout.split('\n')[0]?.trim()); } - } 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)}`); } } });