forked from GitHub/dbot
Merge branch 'master' of github.com:reality/depressionbot
This commit is contained in:
commit
aeb2acc6c9
7
run.js
7
run.js
@ -229,7 +229,12 @@ DBot.prototype.reloadModules = function() {
|
|||||||
this.modules.push(module);
|
this.modules.push(module);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
console.log(this.t('module_load_error', {'moduleName': name}));
|
console.log(this.t('module_load_error', {'moduleName': name}));
|
||||||
console.log('MODULE ERROR: ' + name + ' ' + err);
|
if(this.config.debugMode) {
|
||||||
|
console.log('MODULE ERROR (' + name + '): ' + err.stack );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
console.log('MODULE ERROR (' + name + '): ' + err );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
this.save();
|
this.save();
|
||||||
|
Loading…
Reference in New Issue
Block a user