Skip to content
Browse files

improve error message for bad lib path

  • Loading branch information...
1 parent 083cf8c commit d600739052f5b6bddf4ef7dc9906b0e674de5003 Thomas Yandell committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/soda.js
View
2 src/soda.js
@@ -275,7 +275,7 @@ if (! this.soda) (function (main) {
for (i = 1; i <= l; i++) {
nsPrefix = arguments[i];
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] = [
new RegExp('^' + nsPrefix + '(?:_|$)'),

0 comments on commit d600739

Please sign in to comment.
Something went wrong with that request. Please try again.