From 7a76033e555aa924884ced58cd2e18e34a72c2d5 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 24 Dec 2022 18:35:44 +0000 Subject: [PATCH] Tidy try catch --- setup.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.php b/setup.php index f7e2f2f2..886d523f 100644 --- a/setup.php +++ b/setup.php @@ -785,8 +785,7 @@ if(isset($_POST['add_database'])){ // Test database connection before writing it to config.php try { mysqli_connect($host, $username, $password, $database); - } - catch (Exception $e) { + } catch (Exception $e) { exit("Database connection failed - please check and try again

$e"); }