chore(repo): always log error for runCommandUntil (#16748)

This commit is contained in:
Caleb Ukle 2023-05-04 05:31:15 -05:00 committed by GitHub
parent 2163d720e6
commit 3307188975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,15 +247,13 @@ export function runCommandUntil(
p.stderr?.on('data', checkCriteria);
p.on('exit', (code) => {
if (!complete) {
if (isVerboseE2ERun()) {
logError(
`Original output:`,
output
.split('\n')
.map((l) => ` ${l}`)
.join('\n')
);
}
logError(
`Original output:`,
output
.split('\n')
.map((l) => ` ${l}`)
.join('\n')
);
rej(`Exited with ${code}`);
} else {
res(p);