fix(common): use correct pipe name in error messages (#19403)

Fixes #19373
This commit is contained in:
Olivier Combe
2017-09-26 19:18:26 +02:00
committed by Victor Berchet
parent f57b7df4d7
commit f9b0863c8a
2 changed files with 17 additions and 8 deletions

View File

@ -49,7 +49,7 @@ export class DecimalPipe implements PipeTransform {
const {str, error} = formatNumber(value, locale, NumberFormatStyle.Decimal, digits);
if (error) {
throw invalidPipeArgumentError(CurrencyPipe, error);
throw invalidPipeArgumentError(DecimalPipe, error);
}
return str;
@ -87,7 +87,7 @@ export class PercentPipe implements PipeTransform {
const {str, error} = formatNumber(value, locale, NumberFormatStyle.Percent, digits);
if (error) {
throw invalidPipeArgumentError(CurrencyPipe, error);
throw invalidPipeArgumentError(PercentPipe, error);
}
return str;