diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2022-02-21 11:27:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 11:27:55 +0100 |
commit | d721339262d4f58d3828fd6b2a3faa147c82779a (patch) | |
tree | db4aaeadbbff1e83b4893369c39355302d3dbedc /lib | |
parent | 99e7f335500fec8f0ad62d2cacd90dbe5973c4a9 (diff) | |
parent | bc2c02f451fc4e625753cb9821131231ab5cc1a9 (diff) | |
download | nextcloud-server-d721339262d4f58d3828fd6b2a3faa147c82779a.tar.gz nextcloud-server-d721339262d4f58d3828fd6b2a3faa147c82779a.zip |
Merge pull request #31195 from nextcloud/wrap_exception
Wrap S3 multipart upload exception
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 769901acc79..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 $e; + throw new \OCA\DAV\Connector\Sabre\Exception\BadGateway("Error while uploading to S3 bucket", 0, $e); } } |