forked from GitHub/dbot
onLoad errors no longer suppressed from console
This commit is contained in:
parent
9b7098a318
commit
8d8cf2bd9a
1
run.js
1
run.js
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user