Skip to content

Commit

Permalink
fix(locals): improved an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Jun 4, 2015
1 parent 827841e commit 4eb8c9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/angular2/src/change_detection/parser/locals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}.`);
}
}

Expand Down

0 comments on commit 4eb8c9b

Please sign in to comment.