diff options
author | Louis Chemineau <louis@chmn.me> | 2022-02-16 14:56:14 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2022-02-21 14:25:54 +0000 |
commit | 5043a9dc6b76193b27456002eb0afdc5378c878d (patch) | |
tree | f80312a2e29d51ce812efbc617555e712e53b159 /lib/private | |
parent | 7a2697a10030e970c7751892d1dd60bcd726a073 (diff) | |
download | nextcloud-server-5043a9dc6b76193b27456002eb0afdc5378c878d.tar.gz nextcloud-server-5043a9dc6b76193b27456002eb0afdc5378c878d.zip |
Wrap S3 multipart upload exception
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib/private')
-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 337dbf4d7d1..cdaa202dbe8 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); } } |