Wrap S3 multipart upload exception

Signed-off-by: Louis Chemineau <louis@chmn.me>
pull/31195/head
Louis Chemineau 2022-02-15 17:35:12 +07:00
parent 9026455dac
commit 0b768c17d2
1 changed files with 1 additions and 1 deletions

@ -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);
}
}