diff options
author | Louis Chemineau <louis@chmn.me> | 2022-02-15 17:35:12 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-02-15 17:35:12 +0100 |
commit | 0b768c17d22d49a1631ea5a1ad8c94696fca46e0 (patch) | |
tree | 21f793ff2b4bb3bb2dfe1f96fdd7016278c337c8 | |
parent | 9026455dac6d48ee5ac5899bdb5f00b09c107824 (diff) | |
download | nextcloud-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.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..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); } } |