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; }