Bug Fix, Platform Client Crash

This commit is contained in:
Luis Fernando Molina committed 2021-09-19 22:55:48 +02:00
1 parent 79f0438079
commit 06385eb3bf
2 files changed
+24 -2

No files matched your search

@@ -26,12 +26,12 @@ exports.newFoundationsUtilitiesHttpRequests = function () {
httpRequest.on('error', function (err) {
console.log('[ERROR] getBody -> err.stack = ' + err.stack)
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(global.DEFAULT_FAIL_RESPONSE), httpResponse)
throw('Not possible to get HTTP Body.')
callback()
})
} catch (err) {
console.log('[ERROR] getBody -> err.stack = ' + err.stack)
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(global.DEFAULT_FAIL_RESPONSE), httpResponse)
throw('Not possible to get HTTP Body.')
callback()
}
}
}