From 31168c669b7e66bb77c1b675ab8a11ae41bd4d4e Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 23 Nov 2016 21:08:04 +0300 Subject: [PATCH] closes #5231 --- src/meta/js.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meta/js.js b/src/meta/js.js index be5708d2c1..72c9813a03 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -211,7 +211,9 @@ module.exports = function (Meta) { fs.readFile(filePath, function (err, contents) { if (err) { if (err.code === 'ENOENT') { - winston.warn('[meta/js] ' + filePath + ' not found on disk, did you run ./nodebb build?'); + if (!filePath.endsWith('.map')) { + winston.warn('[meta/js] ' + filePath + ' not found on disk, did you run ./nodebb build?'); + } return next(null, ''); } }