Standarizing
This commit is contained in:
1 parent
982efef1b0
commit
3b8f87dbd7
3 files changed
+4
-4
No files matched your search
Binary file not shown.
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -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.*/
|
||||
|
||||
Reference in new issue
Block a user