Skip to content

Commit

Permalink
fix(cli): task results errors weren't handled properly
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Jul 31, 2018
1 parent 8fa80f0 commit b22b580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garden-cli/src/commands/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export abstract class Command<T extends Parameters = {}, U extends Parameters =
export async function handleTaskResults(
ctx: PluginContext, taskType: string, results: ProcessResults,
): Promise<CommandResult<TaskResults>> {
const failed = Object.values(results).filter(r => !!r.error).length
const failed = Object.values(results.taskResults).filter(r => !!r.error).length

if (failed) {
const error = new RuntimeError(`${failed} ${taskType} task(s) failed!`, {
Expand Down

0 comments on commit b22b580

Please sign in to comment.