ServerBusy error code
This commit is contained in:
1 parent
8c5c1cc740
commit
c325b877f4
2 files changed
+3
-4
No files matched your search
Binary file not shown.
+3
-4
@@ -119,7 +119,7 @@ exports.newFileStorage = function newFileStorage(BOT) {
|
||||
logger.write("[ERROR] createFolder -> onFolderCreated -> result = " + JSON.stringify(result));
|
||||
logger.write("[ERROR] createFolder -> onFolderCreated -> response = " + JSON.stringify(response));
|
||||
|
||||
if (err.message.indexOf("The server is busy") > 0
|
||||
if (err.code === 'ServerBusy'
|
||||
|| err.code === 'ECONNRESET'
|
||||
|| err.code === 'ENOTFOUND'
|
||||
|| err.code === 'ESOCKETTIMEDOUT'
|
||||
@@ -197,7 +197,7 @@ exports.newFileStorage = function newFileStorage(BOT) {
|
||||
logger.write("[ERROR] createTextFile -> onFileCreated -> result = " + JSON.stringify(result));
|
||||
logger.write("[ERROR] createTextFile -> onFileCreated -> response = " + JSON.stringify(response));
|
||||
|
||||
if (err.message.indexOf("The server is busy") > 0
|
||||
if (err.code === 'ServerBusy'
|
||||
|| err.code === 'ECONNRESET'
|
||||
|| err.code === 'ENOTFOUND'
|
||||
|| err.code === 'ESOCKETTIMEDOUT'
|
||||
@@ -274,7 +274,7 @@ exports.newFileStorage = function newFileStorage(BOT) {
|
||||
|
||||
if (err) {
|
||||
|
||||
if (err.message.indexOf("The server is busy") > 0
|
||||
if (err.code === 'ServerBusy'
|
||||
|| err.code === 'ECONNRESET'
|
||||
|| err.code === 'ENOTFOUND'
|
||||
|| err.code === 'ESOCKETTIMEDOUT'
|
||||
@@ -334,7 +334,6 @@ exports.newFileStorage = function newFileStorage(BOT) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
logger.write("[ERROR] getTextFile -> onFileReceived -> Dont know what to do here. Cancelling operation. ");
|
||||
callBackFunction(global.DEFAULT_FAIL_RESPONSE);
|
||||
|
||||
|
||||
Reference in new issue
Block a user