Permalink
Browse files

improve error messaging

  • Loading branch information...
bevacqua committed Nov 21, 2014
1 parent bedab73 commit 80f10023ac9750a825b1483e5d2c35fdacbaa106
Showing with 5 additions and 1 deletion.
  1. +4 −0 browser/index.js
  2. +1 −1 global.js
View
@@ -2,6 +2,10 @@
global.DEBUG && global.DEBUG('[index] loading taunus');
if (global.taunus !== void 0) {
throw new Error('Use require(\'taunus/global\') after the initial require(\'taunus\') statement!');
}
var state = require('./state');
var interceptor = require('./interceptor');
var activator = require('./activator');
View
@@ -2,7 +2,7 @@
var taunus = global.taunus;
if (taunus === void 0) {
throw new Error('You must require(\'taunus\') at least once, when setting up the mountpoint!');
throw new Error('You must require(\'taunus\') earlier, when setting up the mountpoint!');
}
module.exports = taunus;

0 comments on commit 80f1002

Please sign in to comment.