Side Space
This commit is contained in:
1 parent
8d546f5137
commit
58597e4bdc
3 files changed
+6
-1
No files matched your search
+4
-1
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user