]> source.dussan.org Git - nextcloud-server.git/commitdiff
improve s3 error handling 40487/head
authorRobin Appelman <robin@icewind.nl>
Tue, 19 Sep 2023 13:52:14 +0000 (15:52 +0200)
committerRobin Appelman <robin@icewind.nl>
Tue, 19 Sep 2023 13:52:14 +0000 (15:52 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_external/lib/Lib/Storage/AmazonS3.php

index 5b92c9a41054b7e357a2b731ece77e6004bab8eb..3d982bdab02328ec60281c6766d2827ca0e3d076 100644 (file)
@@ -497,7 +497,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
 
                                try {
                                        return $this->readObject($path);
-                               } catch (S3Exception $e) {
+                               } catch (\Exception $e) {
                                        $this->logger->error($e->getMessage(), [
                                                'app' => 'files_external',
                                                'exception' => $e,