mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Wrap S3 multipart upload exception
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
8bda7de345
commit
7a2697a100
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