mirror of
https://github.com/nextcloud/server.git
synced 2026-06-04 14:24:59 -04:00
Wrap S3 multipart upload exception
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue