throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
}
- require_once 'config/.htconfig.php';
- $result = \dba::connect($db_host, $db_user, $db_pass, $db_data);
- unset($db_host, $db_user, $db_pass, $db_data);
-
- if (!$result) {
- throw new \RuntimeException('Unable to connect to database');
+ if ($a->isInstallMode()) {
+ throw new \RuntimeException('Database isn\'t ready or populated yet');
}
/**