Side Space

This commit is contained in:
Luis Fernando Molina committed 2020-05-14 16:39:10 +02:00
1 parent 8d546f5137
commit 58597e4bdc
3 files changed
+6 -1

No files matched your search

+4 -1
View File
@@ -498,14 +498,17 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
if (err) {
if (CONSOLE_LOG === true) { console.log('[ERROR] Error reading a directory content. filePath = ' + dirPath) }
respondWithContent(JSON.stringify(global.DEFAULT_FAIL_RESPONSE), response)
return
} else {
respondWithContent(fileList, response)
respondWithContent(JSON.stringify(fileList), response)
return
}
}
} catch (err) {
if (CONSOLE_LOG === true) { console.log('[ERROR] Error reading a directory content. filePath = ' + dirPath) }
respondWithContent(JSON.stringify(global.DEFAULT_FAIL_RESPONSE), response)
return
}
}