cleanup(pipes): improve the error message of InvalidPipeArgumentException

This commit is contained in:
vsavkin 2015-12-08 12:06:14 -08:00 committed by Jeremy Elbourn
parent 1d825eb685
commit d58f017226
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
import {CONST, Type} from 'angular2/src/facade/lang';
import {CONST, Type, stringify} from 'angular2/src/facade/lang';
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
export class InvalidPipeArgumentException extends BaseException {
constructor(type: Type, value: Object) {
super(`Invalid argument '${value}' for pipe '${type}'`);
super(`Invalid argument '${value}' for pipe '${stringify(type)}'`);
}
}