mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #7076 from nextcloud/s3-valid-bucket-name
Better error message for invalid bucket names
This commit is contained in:
commit
5ed05219d7
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue