From 524778d0cd1d0ba8dea012b8d713642c2cabe22f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 18 May 2019 13:29:21 +0200 Subject: [PATCH] Returning File Not Found in Code --- Server/AzureStorage.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Server/AzureStorage.js b/Server/AzureStorage.js index 1a589b90d..780b20f03 100644 --- a/Server/AzureStorage.js +++ b/Server/AzureStorage.js @@ -132,7 +132,13 @@ if (CONSOLE_ERROR_LOG === true) { console.log("[ERROR] Azure Storage -> readData -> onFileReceived -> err = " + JSON.stringify(err)); } if (CONSOLE_ERROR_LOG === true) { console.log("[ERROR] Azure Storage -> readData -> onFileReceived -> Returning an empty JSON object string. "); } - callBackFunction(global.DEFAULT_FAIL_RESPONSE); + let response = { + result: global.DEFAULT_FAIL_RESPONSE.result, + message: global.DEFAULT_FAIL_RESPONSE.message, + code: 'FileNotFound' + } + + callBackFunction(response); return; }