summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/command/db/convertfromsqlite.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/command/db/convertfromsqlite.php b/core/command/db/convertfromsqlite.php
index cd3e494d7f2..71706580382 100644
--- a/core/command/db/convertfromsqlite.php
+++ b/core/command/db/convertfromsqlite.php
@@ -97,6 +97,9 @@ class ConvertFromSqlite extends Command {
$hostname = $input->getArgument('hostname');
$dbname = $input->getArgument('database');
+ if (!isset(self::$type2driver[$type])) {
+ throw new InvalidArgumentException('Unknown type: '.$type);
+ }
if ($input->getOption('password')) {
$password = $input->getOption('password');
} else {