diff --git a/src/main.ts b/src/main.ts index 0026eec..fd39bcf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,7 +20,11 @@ actionsToolkit.run( }); await core.group(`Pulling binfmt Docker image`, async () => { - await Exec.exec('docker', ['pull', input.image]); + await Exec.getExecOutput('docker', ['pull', input.image]).then(res => { + if (res.stderr.length > 0 && res.exitCode != 0) { + throw new Error(`cannot pull binfmt image: ${res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'}`); + } + }); }); await core.group(`Image info`, async () => {