Skip to content

Commit

Permalink
trim stderr for checking
Browse files Browse the repository at this point in the history
  • Loading branch information
fedordikarev committed Oct 29, 2024
1 parent e5b3ebc commit f3f4f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function loginStandard(registry: string, username: string, password
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
let isRetriable: boolean
isRetriable = res.stderr.endsWith("502 Bad Gateway")
isRetriable = res.stderr.trim().endsWith("502 Bad Gateway")
if (!isRetriable || (attempt >= attempts) {
throw new Error(res.stderr.trim());
}
Expand Down

0 comments on commit f3f4f76

Please sign in to comment.