Permalink
Browse files

[minor] Remove debugging messages

  • Loading branch information...
1 parent a2a96fa commit 036143945370706dd7552c33c1b1e383a65a4543 @indexzero indexzero committed Aug 3, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/carapace.js
View
@@ -212,6 +212,10 @@ carapace.run = function (script, argv, override, callback) {
// #### @script {string} Path to the script to run inside the carapace
//
carapace.load = function (script) {
+ if (script[0] === '.') {
+ throw new Error('Cannot load relative paths into carapace. Provide an absolute path')
+ }
+
var name = path.basename(script, '.js');
if (carapace.plugins[name]) {
@@ -230,9 +234,6 @@ carapace.load = function (script) {
carapace.plugins[name] = script;
carapace.emit('carapace::plugin::loaded', script);
- console.dir(path.resolve(script));
- console.dir(arguments);
- console.dir(carapace);
return script;
};

0 comments on commit 0361439

Please sign in to comment.