From 3307188975cd590b328d00854ee4782c664f18f1 Mon Sep 17 00:00:00 2001 From: Caleb Ukle Date: Thu, 4 May 2023 05:31:15 -0500 Subject: [PATCH] chore(repo): always log error for runCommandUntil (#16748) --- e2e/utils/command-utils.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/e2e/utils/command-utils.ts b/e2e/utils/command-utils.ts index ea1f0bd8ff..20d071bbd7 100644 --- a/e2e/utils/command-utils.ts +++ b/e2e/utils/command-utils.ts @@ -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);