]> source.dussan.org Git - nextcloud-server.git/commitdiff
catch all exceptions
authorBjörn Schießle <bjoern@schiessle.org>
Mon, 1 Feb 2016 12:39:13 +0000 (13:39 +0100)
committerBjörn Schießle <bjoern@schiessle.org>
Mon, 1 Feb 2016 12:39:13 +0000 (13:39 +0100)
apps/federation/backgroundjob/getsharedsecret.php
apps/federation/backgroundjob/requestsharedsecret.php

index cae446f915cab0cca758043f1c98ed650a201729..a98a17e323bbc46e9714c4c5464775c8773dab05 100644 (file)
@@ -151,6 +151,9 @@ class GetSharedSecret extends QueuedJob{
                } catch (ClientException $e) {
                        $status = $e->getCode();
                        $this->logger->logException($e);
+               } catch (\Exception $e) {
+                       $status = HTTP::STATUS_INTERNAL_SERVER_ERROR;
+                       $this->logger->logException($e);
                }
 
                // if we received a unexpected response we try again later
index 92305b7e8eae71feb3deefebdf3aba9d036ab3f5..2db5d09545a12c4c5baa9e03ca0bc4dbf4eaeafd 100644 (file)
@@ -149,6 +149,9 @@ class RequestSharedSecret extends QueuedJob {
                } catch (ClientException $e) {
                        $status = $e->getCode();
                        $this->logger->logException($e);
+               } catch (\Exception $e) {
+                       $status = HTTP::STATUS_INTERNAL_SERVER_ERROR;
+                       $this->logger->logException($e);
                }
 
                // if we received a unexpected response we try again later