Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): correct maximum budget size message
Browse files Browse the repository at this point in the history
WARNING in budgets exceeded message showing wrong number

Fixes #16871.
  • Loading branch information
sacgrover authored and dgp1130 committed Feb 11, 2020
1 parent f4127b5 commit e5061ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export function* checkThresholds(thresholds: IterableIterator<Threshold>, size:
continue;
}

const sizeDifference = formatSize(threshold.limit - size);
const sizeDifference = formatSize(size - threshold.limit);
yield {
severity: threshold.severity,
message: `Exceeded maximum budget for ${label}. Budget ${
Expand Down

0 comments on commit e5061ef

Please sign in to comment.