Skip to content

Commit d15fa52

Browse files
committed
fix: print non-empty stderr
1 parent ab80d02 commit d15fa52

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

dist/index.js

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/docker.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ export async function loginStandard(registry: string, username: string, password
3333
core.info(`🔑 Logging into Docker Hub...`);
3434
}
3535
await execm.exec('docker', loginArgs, true, password).then(res => {
36-
if (res.stderr != '' && !res.success) {
37-
throw new Error(res.stderr);
36+
if (res.stderr != '') {
37+
core.warning(res.stderr);
38+
if (!res.success) {
39+
throw new Error(res.stderr);
40+
}
3841
}
3942
core.info('🎉 Login Succeeded!');
4043
});

0 commit comments

Comments
 (0)