fixed issue where NodeBB was trying to JSON.parse [object Object]

re: #4982
v1.18.x
Julian Lam 9 years ago
parent de0f4a959a
commit 80d89a086e

@ -314,7 +314,7 @@
};
if (err && err.code === 'ENOENT') {
data = {};
data = '{}';
} else if (err) {
winston.error('[translator] Error while loading language file: ' + err.message);
return callback({});

Loading…
Cancel
Save