aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-09-15 22:14:49 +0200
committerGitHub <noreply@github.com>2024-09-15 22:14:49 +0200
commit21a37d79f1c283c8e18e24fc1b8bd92998f62c1e (patch)
tree9fd6921b1d1e4229ec395ccbc9a79d1665c61462 /lib
parent16abf05bfd1cf85ce5be87a9c95d531e39f5683e (diff)
parentab283f7b1baad96d245853b77190906f1fa9766a (diff)
downloadnextcloud-server-21a37d79f1c283c8e18e24fc1b8bd92998f62c1e.tar.gz
nextcloud-server-21a37d79f1c283c8e18e24fc1b8bd92998f62c1e.zip
Merge pull request #47873 from nextcloud/backport/47853/stable29
[stable29] fix: make swift connect exception message more informative
Diffstat (limited to 'lib')
-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 bd75ccada2e..c6f55908a8f 100644
--- a/lib/private/Files/ObjectStore/SwiftFactory.php
+++ b/lib/private/Files/ObjectStore/SwiftFactory.php
@@ -218,13 +218,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);