diff options
author | Louis Chemineau <louis@chmn.me> | 2022-02-16 14:56:14 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-02-16 14:56:14 +0100 |
commit | bc2c02f451fc4e625753cb9821131231ab5cc1a9 (patch) | |
tree | cea88767f82ae7e37c9f49f2f0283bd134177de4 /apps/dav/lib/Connector/Sabre/File.php | |
parent | 0b768c17d22d49a1631ea5a1ad8c94696fca46e0 (diff) | |
download | nextcloud-server-bc2c02f451fc4e625753cb9821131231ab5cc1a9.tar.gz nextcloud-server-bc2c02f451fc4e625753cb9821131231ab5cc1a9.zip |
Wrap S3 multipart upload exception
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/File.php')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/File.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php index 5ff5f831eb5..28817b93b76 100644 --- a/apps/dav/lib/Connector/Sabre/File.php +++ b/apps/dav/lib/Connector/Sabre/File.php @@ -47,6 +47,7 @@ use OCA\DAV\Connector\Sabre\Exception\EntityTooLarge; use OCA\DAV\Connector\Sabre\Exception\FileLocked; use OCA\DAV\Connector\Sabre\Exception\Forbidden as DAVForbiddenException; use OCA\DAV\Connector\Sabre\Exception\UnsupportedMediaType; +use OCA\DAV\Connector\Sabre\Exception\BadGateway; use OCP\Encryption\Exceptions\GenericEncryptionException; use OCP\Files\EntityTooLargeException; use OCP\Files\FileInfo; @@ -206,6 +207,8 @@ class File extends Node implements IFile { $count = $partStorage->writeStream($internalPartPath, $wrappedData); } catch (GenericFileException $e) { $result = false; + } catch (BadGateway $e) { + throw $e; } |