mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 23:30:36 +01:00
closes #5231
This commit is contained in:
@@ -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, '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user