forked from GitHub/dbot
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 {
|
try {
|
||||||
propertyData = JSON.parse(fs.readFileSync(moduleDir + property + '.json', 'utf-8'));
|
propertyData = JSON.parse(fs.readFileSync(moduleDir + property + '.json', 'utf-8'));
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
this.status[name] = 'Error loading ' + property +
|
|
||||||
': ' + err + ' - ' + err.stack.split('\n')[1].trim();
|
|
||||||
console.log('Data error (' + module.name + ') in ' +
|
console.log('Data error (' + module.name + ') in ' +
|
||||||
property + ': ' + err);
|
property + ': ' + err);
|
||||||
|
|
||||||
};
|
};
|
||||||
_.extend(this[property], propertyData);
|
_.extend(this[property], propertyData);
|
||||||
if(property == 'strings') {
|
if(property == 'strings') {
|
||||||
|
Loading…
Reference in New Issue
Block a user