Skip to content

Commit

Permalink
less verbose error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Sep 22, 2016
1 parent 2ce1973 commit f0753ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/syntax/syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Syntax.prototype = {
: this.getProperty(property.name);

if (!propertySyntax) {
this.lastMatchError = new Error('Unknown property for syntax match: ' + propertyName);
this.lastMatchError = new Error('Unknown property: ' + propertyName);
return null;
}

Expand All @@ -121,7 +121,7 @@ Syntax.prototype = {
var typeSyntax = this.getType(typeName);

if (!typeSyntax) {
this.lastMatchError = new Error('Unknown type for syntax match: ' + typeName);
this.lastMatchError = new Error('Unknown type: ' + typeName);
return null;
}

Expand Down

0 comments on commit f0753ef

Please sign in to comment.