mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
Handle callback errors
This commit is contained in:
@@ -221,6 +221,10 @@ module.exports = function(Plugins) {
|
||||
fallbackMap = {};
|
||||
|
||||
utils.walk(pathToFolder, function(err, languages) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
async.each(languages, function(pathToLang, next) {
|
||||
fs.readFile(pathToLang, function(err, file) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user