3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-30 16:09:27 +01:00

Merge branch 'master' of github.com:reality/depressionbot

This commit is contained in:
reality 2012-12-27 23:19:03 +00:00
commit aeb2acc6c9

7
run.js
View File

@ -229,7 +229,12 @@ DBot.prototype.reloadModules = function() {
this.modules.push(module);
} catch(err) {
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));
this.save();