From d58f017226b35638286caee59c9842ede5c0de0e Mon Sep 17 00:00:00 2001 From: vsavkin Date: Tue, 8 Dec 2015 12:06:14 -0800 Subject: [PATCH] cleanup(pipes): improve the error message of InvalidPipeArgumentException --- .../src/common/pipes/invalid_pipe_argument_exception.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/angular2/src/common/pipes/invalid_pipe_argument_exception.ts b/modules/angular2/src/common/pipes/invalid_pipe_argument_exception.ts index 9e414607bd..b3a8311f90 100644 --- a/modules/angular2/src/common/pipes/invalid_pipe_argument_exception.ts +++ b/modules/angular2/src/common/pipes/invalid_pipe_argument_exception.ts @@ -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)}'`); } }