From 3b8f87dbd722d416135f65a525034ffb84c04086 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 14 Mar 2018 16:27:57 +0100 Subject: [PATCH] Standarizing --- .vs/AACloudPlatform/v15/.suo | Bin 76288 -> 75776 bytes Azure File Storage.js | 6 +++--- Status Report.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.vs/AACloudPlatform/v15/.suo b/.vs/AACloudPlatform/v15/.suo index 94b1f7cbaa76a8c9a54ce700a95ae2d7b242b0aa..56df7e0526545e2810cc135cb604148d59c5937f 100644 GIT binary patch delta 767 zcmY*XYeH*g>+-7zZ~d5?7mz~xWLPi^ z#W$O*BKuac!n_@ENh>rY3%qp00z=4O(T^f=f*P)~M6h#s&U<^__c=da;geK&C+)VN z#i`Wm7$%Wn7zxF8EEc1N0g59djx7K+n%H#NaKXa25PDcI3}Te6P-tmAmje6W7}3J2 zu|*=VDwb?YHUZj6R92u+bkh2bI47TLN{SC2putm$xW7#%I3HlCCJ#EWS$!3rV3fX( zu~}2DWGEq~iMQ^ISAdAoq>uRiZVp-7SE)j~+5!#OY$#VkoGRTz#Wh34PFB7rOPbQl zSe=_@JQV*vK>Nt7DMt=2+(_GkMiM=gXaxhxs!N~;N4R8iJ~srTwZAN^9Psx|F9XZHvk`lpcruU=47LYK2p_HHJ zuy}UNjGZ%PQaRrUsis{HwHXvv3j0H<)<8~t2us9Oh3aCxtGcd+s@1#vCOxEM*Nhqq z7mJ8{QOCxYka+*J%5P-?uQ;>7(U@WUWtmXeQ=H`wWx^Mo``LVN$K>_7w#z-Ay+8Fw v{oQ78KT3dv(G`|O=RAgJb@QYVIZR7i+QNmvkpx-&vUERtYe_kn`@4&2LkfA{d6b2!-#BKt`U zB^o)~iU?yNEi3dX`@SF0Kt~JdzW|lk$m2$&zV!GyUgUkWVOE1HHURSU%V?9dKNRD# zMyCgMIP%`c1eb7)E?1uhS*w}Y!HvNH&}LmFcdho2)Ybg(j(@szU=Uop1X$X2p6tC} zO#0Ix!EF|Yp&yN|qejr+oAiZ;os6%_3{+2Vi9W z5H3zv;p<`(U6{^;S~f8?bJDS+U}NXc8jO!xl$+@V^_{zOZy|a^53?PkTcZ6Triwju zYW`(~T9;};sIuuU1D^mBeB)6VO!b@N`nwn=H?tG>E$BAJ8(_Q&7gEi*n6mE)NXpFQ z+}(a}VAeSy;9z9?b@fXAbKh$02%Z^9IGzAcuadE2tb?_&R(-cHXUKre|2zBxbMDT8 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.*/