From b8df31af839a3125fa11fefae25359f1cfd271fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iiro=20J=C3=A4ppinen?= Date: Mon, 27 Apr 2020 15:02:04 +0300 Subject: [PATCH] fix: do not show incorrect error when verbose and no output --- lib/resolveTaskFn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resolveTaskFn.js b/lib/resolveTaskFn.js index 471f498a2..4a3efb19a 100644 --- a/lib/resolveTaskFn.js +++ b/lib/resolveTaskFn.js @@ -32,7 +32,7 @@ const handleOutput = (command, result, ctx, isError = false) => { const outputTitle = isError ? redBright(`${error} ${command}:`) : `${info} ${command}:` const output = ['', outputTitle].concat(stderr ? [stderr] : []).concat(stdout ? [stdout] : []) ctx.output.push(output.join('\n')) - } else { + } else if (isError) { // Show generic error when task had no output const tag = getTag(result) const message = redBright(`\n${error} ${command} failed without output (${tag}).`)