Modified module error output

This commit is contained in:
Daniel Evans 2012-12-24 03:08:36 +00:00
parent 3bfa3d58c3
commit bea13e56f8

2
run.js
View File

@ -229,7 +229,7 @@ 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); console.log('MODULE ERROR (' + name + '): ' + err.stack );
} }
}.bind(this)); }.bind(this));
this.save(); this.save();