l10n - Add the mandatory callback to fs.close
authorRaphaël Jakse <raphael.jakse@univ-grenoble-alpes.fr>
Sun, 5 Apr 2020 10:50:18 +0000 (12:50 +0200)
committerRaphaël Jakse <raphael.jakse@univ-grenoble-alpes.fr>
Sun, 5 Apr 2020 10:50:18 +0000 (12:50 +0200)
l10n/makejs.js

index 6c7ba759e1e79cd48351439d62cad3404ea32e23..5dd1877dd1d052dfd5c0804938765018fdea5f27 100755 (executable)
@@ -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);
+       }
+   });
 }