cleanup(pipes): improve the error message of InvalidPipeArgumentException
This commit is contained in:
parent
1d825eb685
commit
d58f017226
|
@ -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)}'`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue