diff options
Diffstat (limited to 'installer/web.php')
-rw-r--r-- | installer/web.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/installer/web.php b/installer/web.php index 89b0021d..cfae7a33 100644 --- a/installer/web.php +++ b/installer/web.php @@ -52,8 +52,12 @@ if (installer::already_installed()) { } else if (!installer::create_database_config($config)) { $content = oops("Couldn't create var/database.php"); } else { - list ($user, $password) = installer::create_admin($config); - $content = render("success.html.php", array("user" => $user, "password" => $password)); + try { + list ($user, $password) = installer::create_admin($config); + $content = render("success.html.php", array("user" => $user, "password" => $password)); + } catch (Exception $e) { + $content = oops($e->getMessage()); + } } break; } |