summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 276c892d56e..142ead786ee 100644
--- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php
+++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php
@@ -92,8 +92,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)) {