From e58a915d99e24b3574b64d2db6ad84a4146e89a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Jakse?= Date: Sun, 5 Apr 2020 12:50:18 +0200 Subject: [PATCH] l10n - Add the mandatory callback to fs.close --- l10n/makejs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/l10n/makejs.js b/l10n/makejs.js index 6c7ba75..5dd1877 100755 --- a/l10n/makejs.js +++ b/l10n/makejs.js @@ -94,5 +94,9 @@ for (var l in langs) { } fs.writeSync(jsFile, "if(" + translationFunction + ".applyL10n){" + translationFunction + ".applyL10n();}})();"); - fs.close(jsFile); + fs.close(jsFile, function (e) { + if (e) { + console.error(e); + } + }); } -- 2.30.2