Skip to content

Commit

Permalink
improve error message for bad lib path
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Yandell committed Feb 28, 2010
1 parent 083cf8c commit d600739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/soda.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ if (! this.soda) (function (main) {
for (i = 1; i <= l; i++) { for (i = 1; i <= l; i++) {
nsPrefix = arguments[i]; nsPrefix = arguments[i];
if (! /^\w+(?:_\w+)*$/.test(nsPrefix)) { if (! /^\w+(?:_\w+)*$/.test(nsPrefix)) {
throw new Error('soda.lib: invalid namespace prefix "' + nsPrefix + '"'); throw new Error('invalid namespace prefix "' + nsPrefix + '" passed to soda.lib');
} }
inc[inc.length] = [ inc[inc.length] = [
new RegExp('^' + nsPrefix + '(?:_|$)'), new RegExp('^' + nsPrefix + '(?:_|$)'),
Expand Down

0 comments on commit d600739

Please sign in to comment.