diff --git a/.vs/AACloudPlatform/v15/.suo b/.vs/AACloudPlatform/v15/.suo index 94b1f7cba..56df7e052 100644 Binary files a/.vs/AACloudPlatform/v15/.suo and b/.vs/AACloudPlatform/v15/.suo differ diff --git a/Azure File Storage.js b/Azure File Storage.js index 22036ce7e..b9a74a3b4 100644 --- a/Azure File Storage.js +++ b/Azure File Storage.js @@ -263,14 +263,14 @@ exports.newAzureFileStorage = function newAzureFileStorage(BOT) { /* This is how Azure tell us the folder where the file was supposed to be does not exist. We map this to our own response. */ - let customResponse = { - result: global.DEFAULT_FAIL_RESPONSE.result, + let customErr = { + result: global.CUSTOM_FAIL_RESPONSE.result, message: "Folder does not exist." }; logger.write("[ERROR] getTextFile -> onFileReceived -> Custom Response -> message = " + customResponse.message); - callBackFunction(customResponse); + callBackFunction(customErr); return; } diff --git a/Status Report.js b/Status Report.js index 888a91ee5..14e19240f 100644 --- a/Status Report.js +++ b/Status Report.js @@ -124,7 +124,7 @@ function onFileReceived(err, text) { - if (err.result === global.DEFAULT_FAIL_RESPONSE.result && err.message === 'Folder does not exist.') { + if (err.result === global.CUSTOM_FAIL_RESPONSE.result && err.message === 'Folder does not exist.') { logger.write("[INFO] initialize -> getFile -> onFileReceived -> err = " + err.message); /* In this case we can assume that this is the first execution ever of this bot.*/