Task Error event working

This commit is contained in:
Luis Fernando Molina committed 2020-06-11 21:53:59 +02:00
1 parent e404047a07
commit 1f11ad549c
7 files changed
+194 -271

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ exports.newDebugLog = function newDebugLog() {
function writeLog() {
fileStorage.createTextFile(filePath + '/' + fileName, contentToPersist + '\r\n' + "]", onFileCreated);
fileStorage.createTextFile(filePath + '/' + fileName, contentToPersist + '\r\n' + "]", onFileCreated, undefined, true);
function onFileCreated(err) {
if (err.result !== global.DEFAULT_OK_RESPONSE.result) {
console.log("[ERROR] DebugLog -> persist -> onInizialized -> onFileCreated -> err = " + err.message);