fix(locals): improved an error message

This commit is contained in:
vsavkin 2015-06-04 13:44:42 -07:00
parent 827841ec5b
commit 4eb8c9b2dd
1 changed files with 2 additions and 1 deletions

View File

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