Skip to content

Commit

Permalink
more specific error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthropohedron committed Apr 4, 2015
1 parent 6b45897 commit c2b2d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var fakeRE = { test: function() { return true; } };
function PathPattern(pattern) {
var match = pathRE.exec(pattern);
if (!match) {
throw new Error("Invalid pattern: '" + pattern + "'");
throw new Error("Invalid path pattern: '" + pattern + "'");
}
this.hostRE = match[1] ?
new RegExp(hostGlobToRE(match[1])) : fakeRE;
Expand Down

0 comments on commit c2b2d54

Please sign in to comment.