diff --git a/src/namespace.js b/src/namespace.js index ff96aada1..f1fc5f087 100644 --- a/src/namespace.js +++ b/src/namespace.js @@ -203,7 +203,7 @@ Namespace.prototype.get = function get(name) { Namespace.prototype.getEnum = function getEnum(name) { if (this.nested && this.nested[name] instanceof Enum) return this.nested[name].values; - throw Error("no such enum"); + throw Error("no such enum: " + name); }; /** @@ -377,7 +377,7 @@ Namespace.prototype.lookup = function lookup(path, filterTypes, parentAlreadyChe Namespace.prototype.lookupType = function lookupType(path) { var found = this.lookup(path, [ Type ]); if (!found) - throw Error("no such type"); + throw Error("no such type: " + path); return found; };