From: Raphaƫl Jakse Date: Sun, 5 Apr 2020 10:50:18 +0000 (+0200) Subject: l10n - Add the mandatory callback to fs.close X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=e58a915d99e24b3574b64d2db6ad84a4146e89a9;p=trivabble.git l10n - Add the mandatory callback to fs.close --- 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); + } + }); }