mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
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:
@@ -217,7 +217,8 @@
|
|||||||
|
|
||||||
fs.readFile(path.join(__dirname, '../language', language, filename + '.json'), function(err, data) {
|
fs.readFile(path.join(__dirname, '../language', language, filename + '.json'), function(err, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return winston.error(err.message);
|
winston.error('Could not load `' + filename + '`: ' + err.message + '. Skipping...');
|
||||||
|
return callback({});
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user