Fix error if `./nodebb build` isn't called before tests

v1.18.x
Peter Jaszkowiak 8 years ago
parent 6e5a79842f
commit 37c4218184

@ -31,6 +31,9 @@ Languages.list = function (callback) {
var languages = [];
fs.readdir(languagesPath, function (err, files) {
if (err && err.code === 'ENOENT') {
return callback(null, []);
}
if (err) {
return callback(err);
}

Loading…
Cancel
Save