onLoad errors no longer suppressed from console

This commit is contained in:
Sam Nicholls 2013-03-21 00:05:35 +00:00
parent 9b7098a318
commit 8d8cf2bd9a

1
run.js
View File

@ -293,6 +293,7 @@ DBot.prototype.reloadModules = function() {
module.onLoad(); module.onLoad();
} catch(err) { } catch(err) {
this.status[name] = 'Error in onLoad: ' + err + ' ' + err.stack.split('\n')[1].trim(); this.status[name] = 'Error in onLoad: ' + err + ' ' + err.stack.split('\n')[1].trim();
console.log('MODULE ONLOAD ERROR (' + name + '): ' + err );
} }
} }
}, this); }, this);