Skip to content

Commit

Permalink
fix: do not show incorrect error when verbose and no output
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Apr 27, 2020
1 parent eed6198 commit b8df31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resolveTaskFn.js
Expand Up @@ -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}).`)
Expand Down

0 comments on commit b8df31a

Please sign in to comment.