aboutsummaryrefslogtreecommitdiff
path: root/app/install.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-10-05 17:12:05 +0200
committerGravatar GitHub <noreply@github.com> 2019-10-05 17:12:05 +0200
commit40686d68df629642be78a50a24a62dd6feaa699c (patch)
treecbe07fe4b4c85f13c9e606a558b1be341e534e26 /app/install.php
parent0d5c80b69894c94d66747f7e1f8ae9b46818963f (diff)
Catch error in install (#2556)
Diffstat (limited to 'app/install.php')
-rw-r--r--app/install.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/install.php b/app/install.php
index 92e07dd4f..366fb0cfc 100644
--- a/app/install.php
+++ b/app/install.php
@@ -158,7 +158,13 @@ function saveStep2() {
Minz_Configuration::register('system', DATA_PATH . '/config.php', FRESHRSS_PATH . '/config.default.php');
FreshRSS_Context::$system_conf = Minz_Configuration::get('system');
- $ok = checkDb();
+ $ok = false;
+ try {
+ $ok = checkDb();
+ } catch (Exception $ex) {
+ $_SESSION['bd_error'] = $ex->getMessage();
+ $ok = false;
+ }
if (!$ok) {
@unlink(join_path(DATA_PATH, 'config.php'));
}