don't crash if language file not found

@barisusakli seems like something needs footer.json, maybe it's a plugin
if its not crashing for you
This commit is contained in:
psychobunny
2014-04-19 10:01:01 -04:00
parent 7fb5db76d3
commit 7b453edb2d

View File

@@ -217,7 +217,8 @@
fs.readFile(path.join(__dirname, '../language', language, filename + '.json'), function(err, data) {
if (err) {
return winston.error(err.message);
winston.error('Could not load `' + filename + '`: ' + err.message + '. Skipping...');
return callback({});
}
try {