aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-09-10 16:45:19 +0200
committerGitHub <noreply@github.com>2024-09-10 16:45:19 +0200
commita7eaed721c477230176b0689cfcc2c1c7b458ec3 (patch)
tree1209e87fddd66e1157d8dd23253129d8ccf54260 /lib/private/Files
parent0858ff7a076b1535cecd7c1ec5140b4e2c2b4f47 (diff)
parent508d8e7c01cc68c527b82ce57c3837b1ba8c4995 (diff)
downloadnextcloud-server-a7eaed721c477230176b0689cfcc2c1c7b458ec3.tar.gz
nextcloud-server-a7eaed721c477230176b0689cfcc2c1c7b458ec3.zip
Merge pull request #47853 from nextcloud/clearify-swift-exception
fix: make swift connect exception message more informative
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/ObjectStore/SwiftFactory.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Files/ObjectStore/SwiftFactory.php b/lib/private/Files/ObjectStore/SwiftFactory.php
index a2e22e45de2..118724159e5 100644
--- a/lib/private/Files/ObjectStore/SwiftFactory.php
+++ b/lib/private/Files/ObjectStore/SwiftFactory.php
@@ -194,13 +194,13 @@ class SwiftFactory {
} catch (ClientException $e) {
$statusCode = $e->getResponse()->getStatusCode();
if ($statusCode === 404) {
- throw new StorageAuthException('Keystone not found, verify the keystone url', $e);
+ throw new StorageAuthException('Keystone not found while connecting to object storage, verify the keystone url', $e);
} elseif ($statusCode === 412) {
- throw new StorageAuthException('Precondition failed, verify the keystone url', $e);
+ throw new StorageAuthException('Precondition failed while connecting to object storage, verify the keystone url', $e);
} elseif ($statusCode === 401) {
- throw new StorageAuthException('Authentication failed, verify the username, password and possibly tenant', $e);
+ throw new StorageAuthException('Authentication failed while connecting to object storage, verify the username, password and possibly tenant', $e);
} else {
- throw new StorageAuthException('Unknown error', $e);
+ throw new StorageAuthException('Unknown error while connecting to object storage', $e);
}
} catch (RequestException $e) {
throw new StorageAuthException('Connection reset while connecting to keystone, verify the keystone url', $e);