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}.`); } }