diff --git a/public/src/translator.js b/public/src/translator.js index 2304f54259..7b3d6728c0 100644 --- a/public/src/translator.js +++ b/public/src/translator.js @@ -204,7 +204,10 @@ winston = require('winston'); utils.walk(path.join(__dirname, '../language', (Meta.config.defaultLang || 'en_GB')), function (err, data) { - var loaded = data.length; + if(err) { + console.log(err.message); + return; + } for (var d in data) { if (data.hasOwnProperty(d)) {