summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-02-16 14:56:14 +0100
committerLouis Chemineau <louis@chmn.me>2022-02-16 14:56:14 +0100
commitbc2c02f451fc4e625753cb9821131231ab5cc1a9 (patch)
treecea88767f82ae7e37c9f49f2f0283bd134177de4 /lib
parent0b768c17d22d49a1631ea5a1ad8c94696fca46e0 (diff)
downloadnextcloud-server-bc2c02f451fc4e625753cb9821131231ab5cc1a9.tar.gz
nextcloud-server-bc2c02f451fc4e625753cb9821131231ab5cc1a9.zip
Wrap S3 multipart upload exception
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/ObjectStore/S3ObjectTrait.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/ObjectStore/S3ObjectTrait.php b/lib/private/Files/ObjectStore/S3ObjectTrait.php
index 5fed335265a..4e54a26e98a 100644
--- a/lib/private/Files/ObjectStore/S3ObjectTrait.php
+++ b/lib/private/Files/ObjectStore/S3ObjectTrait.php
@@ -126,7 +126,7 @@ trait S3ObjectTrait {
if ($e->getState()->isInitiated() && (array_key_exists('UploadId', $uploadInfo))) {
$this->getConnection()->abortMultipartUpload($uploadInfo);
}
- throw new \OCP\Files\StorageConnectionException("Error while upload to S3 bucket", $e);
+ throw new \OCA\DAV\Connector\Sabre\Exception\BadGateway("Error while uploading to S3 bucket", 0, $e);
}
}