Skip to content

Commit 4eb8c9b

Browse files
committed
fix(locals): improved an error message
1 parent 827841e commit 4eb8c9b

File tree

1 file changed

+2
-1
lines changed
  • modules/angular2/src/change_detection/parser

1 file changed

+2
-1
lines changed

Diff for: modules/angular2/src/change_detection/parser/locals.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export class Locals {
3535
if (MapWrapper.contains(this.current, name)) {
3636
MapWrapper.set(this.current, name, value);
3737
} else {
38-
throw new BaseException('Setting of new keys post-construction is not supported.');
38+
throw new BaseException(
39+
`Setting of new keys post-construction is not supported. Key: ${name}.`);
3940
}
4041
}
4142

0 commit comments

Comments
 (0)