From 253c19abeb173f00ab3dbd9717d5e7964ceebd9f Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sun, 9 Feb 2014 13:08:25 -0500 Subject: [PATCH] removed unused var added error log --- public/src/translator.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) {