summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-05-04 14:43:48 +0200
committerRobin Appelman <robin@icewind.nl>2023-05-04 14:43:48 +0200
commitcd3e7fd1b052e7907aeeaa6b8c91eb3771acf1c4 (patch)
treea51bdd3dc9f46968a8f482cc12d417fde5dbad29 /core
parent527de8ac9d989baf30144e8f9bc0381226d4aee9 (diff)
downloadnextcloud-server-cd3e7fd1b052e7907aeeaa6b8c91eb3771acf1c4.tar.gz
nextcloud-server-cd3e7fd1b052e7907aeeaa6b8c91eb3771acf1c4.zip
list supported databases when provided db isn't supported
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core')
-rw-r--r--core/Command/Maintenance/Install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Maintenance/Install.php b/core/Command/Maintenance/Install.php
index fa93a661906..efb99e51431 100644
--- a/core/Command/Maintenance/Install.php
+++ b/core/Command/Maintenance/Install.php
@@ -123,7 +123,7 @@ class Install extends Command {
$db = strtolower($input->getOption('database'));
if (!in_array($db, $supportedDatabases)) {
- throw new InvalidArgumentException("Database <$db> is not supported.");
+ throw new InvalidArgumentException("Database <$db> is not supported. " . implode(", ", $supportedDatabases) . " are supported.");
}
$dbUser = $input->getOption('database-user');