Improve an assertion message

This commit is contained in:
joeduffy 2017-04-19 15:23:05 -07:00
parent cbd3692d3d
commit 0977477f95

View file

@ -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;