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 /lib | |
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 'lib')
-rw-r--r-- | lib/private/Files/ObjectStore/S3ObjectTrait.php | 2 |
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); } } |