From b2ede3f5d562b940158438481abbde359bb4a60f Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Thu, 19 Apr 2012 12:14:08 +0100 Subject: [PATCH] print the error to console if it fails to load a module --- modules/badwords.js | 2 +- run.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/badwords.js b/modules/badwords.js index bd16699..2e7ac29 100644 --- a/modules/badwords.js +++ b/modules/badwords.js @@ -46,7 +46,7 @@ var badwords = function(dbot) { 'ignorable': true }; -} +}; exports.fetch = function(dbot) { return badwords(dbot); diff --git a/run.js b/run.js index 9b78ef6..d8e93a7 100644 --- a/run.js +++ b/run.js @@ -143,6 +143,7 @@ DBot.prototype.reloadModules = function() { this.modules.push(module); } catch(err) { console.log(this.strings[this.language].module_load_error.format({'moduleName': name})); + console.log(err); } }.bind(this)); };