Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
fix: #40 batch error should result in exitcode 1 (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim authored Mar 8, 2021
1 parent 4b587a9 commit 8ff81d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/cli/src/utils/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class Status {
logs: string[];
}
>();
private hasBatchErrors = false;

private timeStartedByProject = new Map<string, number>();

Expand All @@ -30,7 +31,7 @@ export class Status {
get hasErrors() {
return Array.from(this.actionsByProjectName.values()).some(stat =>
Boolean(stat.hasErrors)
);
) || this.hasBatchErrors;
}

setActions(...actions: Action[]) {
Expand Down Expand Up @@ -189,6 +190,9 @@ export class Status {
).join(' ')
);
}
if (entry.level === 'error') {
this.hasBatchErrors = true;
}
});
this.onChange({ done, dynamic: [], height: 0 });
}
Expand Down

0 comments on commit 8ff81d8

Please sign in to comment.