]> source.dussan.org Git - nextcloud-server.git/commitdiff
list supported databases when provided db isn't supported 38069/head
authorRobin Appelman <robin@icewind.nl>
Thu, 4 May 2023 12:43:48 +0000 (14:43 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 4 May 2023 12:43:48 +0000 (14:43 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
core/Command/Maintenance/Install.php

index fa93a6619066665c2a723685edfc1baa6c4efa8c..efb99e51431f86da55a830c214fce4dcf92c7a2a 100644 (file)
@@ -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');