mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 12:29:26 +01:00
fix the things
This commit is contained in:
parent
2203f50dea
commit
d9d7d9bff7
3
run.js
3
run.js
@ -281,11 +281,8 @@ DBot.prototype.reloadModules = function() {
|
||||
try {
|
||||
propertyData = JSON.parse(fs.readFileSync(moduleDir + property + '.json', 'utf-8'));
|
||||
} catch(err) {
|
||||
this.status[name] = 'Error loading ' + property +
|
||||
': ' + err + ' - ' + err.stack.split('\n')[1].trim();
|
||||
console.log('Data error (' + module.name + ') in ' +
|
||||
property + ': ' + err);
|
||||
|
||||
};
|
||||
_.extend(this[property], propertyData);
|
||||
if(property == 'strings') {
|
||||
|
Loading…
Reference in New Issue
Block a user