fix(common): use correct pipe name in error messages (#19403)
Fixes #19373
This commit is contained in:

committed by
Victor Berchet

parent
f57b7df4d7
commit
f9b0863c8a
@ -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;
|
||||
|
Reference in New Issue
Block a user