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}).`)