Standarizing

This commit is contained in:
Luis Fernando Molina committed 2018-03-14 16:27:57 +01:00
1 parent 982efef1b0
commit 3b8f87dbd7
3 files changed
+4 -4

No files matched your search

Binary file not shown.
+3 -3
View File
@@ -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
View File
@@ -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.*/