mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
small cleanup to postSummary
This commit is contained in:
@@ -263,7 +263,7 @@ var fs = require('fs'),
|
||||
async.each(languages, function(pathToLang, next) {
|
||||
fs.readFile(pathToLang, function(err, file) {
|
||||
try {
|
||||
var json = JSON.parse(file.toString());
|
||||
var json = JSON.parse(file.toString());
|
||||
} catch (err) {
|
||||
winston.error('[plugins] Unable to parse custom language file: ' + pathToLang + '\r\n' + err.stack);
|
||||
return next(err);
|
||||
|
||||
Reference in New Issue
Block a user