From: Markus Goetz Date: Thu, 6 Oct 2016 12:45:04 +0000 (+0200) Subject: 503: Also parse other server error message (#5228) X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1076 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=84c925dc588bd328bf9b7e2fd1c196816c4ae787;p=nextcloud-desktop.git 503: Also parse other server error message (#5228) From https://github.com/owncloud/core/pull/26145 --- diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp index fa71944c0..b55ecbf62 100644 --- a/src/libsync/discoveryphase.cpp +++ b/src/libsync/discoveryphase.cpp @@ -192,7 +192,8 @@ int get_errno_from_http_errcode( int err, const QString & reason ) { new_errno = EIO; break; case 503: /* Service Unavailable */ - if (reason == "Storage not available") { + // https://github.com/owncloud/core/pull/26145/files + if (reason == "Storage not available" || reason == "Storage is temporarily not available") { new_errno = ERRNO_STORAGE_UNAVAILABLE; } else { new_errno = ERRNO_SERVICE_UNAVAILABLE;