Skip to content

Commit 19329d1

Browse files
committed
fix: print non-empty stderr
Signed-off-by: eine <eine@users.noreply.github.com>
1 parent 1cce165 commit 19329d1

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

dist/index.js

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/docker.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ export async function loginStandard(registry: string, username: string, password
4343
input: Buffer.from(password)
4444
})
4545
.then(res => {
46-
if (res.stderr.length > 0 && res.exitCode != 0) {
47-
throw new Error(res.stderr.trim());
46+
if (res.stderr.length > 0) {
47+
if (res.exitCode != 0) {
48+
throw new Error(res.stderr.trim());
49+
} else {
50+
core.warning(res.stderr);
51+
}
4852
}
4953
core.info(`Login Succeeded!`);
5054
});

0 commit comments

Comments
 (0)