summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-02-15 17:35:12 +0100
committerLouis Chemineau <louis@chmn.me>2022-02-15 17:35:12 +0100
commit0b768c17d22d49a1631ea5a1ad8c94696fca46e0 (patch)
tree21f793ff2b4bb3bb2dfe1f96fdd7016278c337c8
parent9026455dac6d48ee5ac5899bdb5f00b09c107824 (diff)
downloadnextcloud-server-0b768c17d22d49a1631ea5a1ad8c94696fca46e0.tar.gz
nextcloud-server-0b768c17d22d49a1631ea5a1ad8c94696fca46e0.zip
Wrap S3 multipart upload exception
Signed-off-by: Louis Chemineau <louis@chmn.me>
-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 769901acc79..5fed335265a 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 \OCP\Files\StorageConnectionException("Error while upload to S3 bucket", $e);
}
}