Improve an assertion message
This commit is contained in:
parent
cbd3692d3d
commit
0977477f95
1 changed files with 1 additions and 1 deletions
|
@ -894,7 +894,7 @@ export class Transformer {
|
|||
|
||||
// Fetch the symbol that this name refers to.
|
||||
let idsym: ts.Symbol = this.checker().getSymbolAtLocation(name);
|
||||
contract.assert(!!idsym);
|
||||
contract.assert(!!idsym, `Expected a symbol for ID ${id.ident}`);
|
||||
|
||||
// Fetch information about the object we are loading from, if any.
|
||||
let objty: ts.Type | undefined;
|
||||
|
|
Loading…
Reference in a new issue