fix(locals): improved an error message
This commit is contained in:
parent
827841ec5b
commit
4eb8c9b2dd
|
@ -35,7 +35,8 @@ export class Locals {
|
||||||
if (MapWrapper.contains(this.current, name)) {
|
if (MapWrapper.contains(this.current, name)) {
|
||||||
MapWrapper.set(this.current, name, value);
|
MapWrapper.set(this.current, name, value);
|
||||||
} else {
|
} 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}.`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue