diff --git a/dist/index.js b/dist/index.js index 5c056b2..965e475 100644 --- a/dist/index.js +++ b/dist/index.js @@ -282,8 +282,13 @@ async function loginECR(registry, username, password) { input: Buffer.from(regData.password) }) .then(res => { - if (res.stderr.length > 0 && res.exitCode != 0) { - throw new Error(res.stderr.trim()); + if (res.stderr.length > 0) { + if (res.exitCode != 0) { + throw new Error(res.stderr.trim()); + } + else { + core.warning(res.stderr); + } } core.info('Login Succeeded!'); }); diff --git a/src/docker.ts b/src/docker.ts index fce77f5..b8a5846 100644 --- a/src/docker.ts +++ b/src/docker.ts @@ -43,8 +43,12 @@ export async function loginStandard(registry: string, username: string, password input: Buffer.from(password) }) .then(res => { - if (res.stderr.length > 0 && res.exitCode != 0) { - throw new Error(res.stderr.trim()); + if (res.stderr.length > 0) { + if (res.exitCode != 0) { + throw new Error(res.stderr.trim()); + } else { + core.warning(res.stderr); + } } core.info(`Login Succeeded!`); });