]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
503: Also parse other server error message (#5228)
authorMarkus Goetz <markus@woboq.com>
Thu, 6 Oct 2016 12:45:04 +0000 (14:45 +0200)
committerGitHub <noreply@github.com>
Thu, 6 Oct 2016 12:45:04 +0000 (14:45 +0200)
From https://github.com/owncloud/core/pull/26145

src/libsync/discoveryphase.cpp

index fa71944c0833358e57c25796352dcce41ffa59fa..b55ecbf62e9f19c7950b13b3646bb5ff595e5112 100644 (file)
@@ -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;