summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/ObjectStore/S3ObjectTrait.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-10-17 15:10:58 +0200
committerRobin Appelman <robin@icewind.nl>2017-10-17 15:10:58 +0200
commit91b3536f45a2d0825b6678d1727e49be7429f79f (patch)
tree2f7071e0d4664c5a1d362e995d070e76c545a8bb /lib/private/Files/ObjectStore/S3ObjectTrait.php
parente964f83f28c49402678478774a2d1f62b02205d8 (diff)
downloadnextcloud-server-91b3536f45a2d0825b6678d1727e49be7429f79f.tar.gz
nextcloud-server-91b3536f45a2d0825b6678d1727e49be7429f79f.zip
propagate multipart upload exception when aborting upload
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/ObjectStore/S3ObjectTrait.php')
-rw-r--r--lib/private/Files/ObjectStore/S3ObjectTrait.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/S3ObjectTrait.php b/lib/private/Files/ObjectStore/S3ObjectTrait.php
index 2cbe20d9801..6fb12265cb7 100644
--- a/lib/private/Files/ObjectStore/S3ObjectTrait.php
+++ b/lib/private/Files/ObjectStore/S3ObjectTrait.php
@@ -105,6 +105,7 @@ trait S3ObjectTrait {
]);
} else {
$this->getConnection()->abortMultipartUpload($e->getState()->getId());
+ throw $e;
}
}
} while (!isset($result) && $tries < 5);