summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-11-06 09:48:41 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-11-06 09:48:41 +0100
commit8b763ea0f7e87d2b38ff1a1dcd97832ef94c93c5 (patch)
tree8a24d1be4535030c3d62b6ab1cccfb00f4868c0c /lib
parent576d31d48d1e368c0ca54a95f28dc3bc0e553d83 (diff)
downloadnextcloud-server-8b763ea0f7e87d2b38ff1a1dcd97832ef94c93c5.tar.gz
nextcloud-server-8b763ea0f7e87d2b38ff1a1dcd97832ef94c93c5.zip
Better error message for invalid bucket names
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/ObjectStore/S3ConnectionTrait.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php
index fdda19ff700..927d93689c7 100644
--- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php
+++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php
@@ -90,8 +90,8 @@ trait S3ConnectionTrait {
}
$this->connection = new S3Client($options);
- if (!S3Client::isBucketDnsCompatible($this->bucket)) {
- throw new \Exception("The configured bucket name is invalid.");
+ if (!$this->connection->isBucketDnsCompatible($this->bucket)) {
+ throw new \Exception("The configured bucket name is invalid: " . $this->bucket);
}
if (!$this->connection->doesBucketExist($this->bucket)) {