Better error message for invalid bucket names

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/7076/head
Morris Jobke 8 years ago
parent 576d31d48d
commit 8b763ea0f7
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 4
      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)) {

Loading…
Cancel
Save