From 4eb8c9b2dd725452f4bb81e8ab7ccd5ea61558c2 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Thu, 4 Jun 2015 13:44:42 -0700 Subject: [PATCH] fix(locals): improved an error message --- modules/angular2/src/change_detection/parser/locals.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/angular2/src/change_detection/parser/locals.ts b/modules/angular2/src/change_detection/parser/locals.ts index 6a262b362f..04396ebd0e 100644 --- a/modules/angular2/src/change_detection/parser/locals.ts +++ b/modules/angular2/src/change_detection/parser/locals.ts @@ -35,7 +35,8 @@ export class Locals { if (MapWrapper.contains(this.current, name)) { MapWrapper.set(this.current, name, value); } else { - throw new BaseException('Setting of new keys post-construction is not supported.'); + throw new BaseException( + `Setting of new keys post-construction is not supported. Key: ${name}.`); } }