diff --git a/data/web/inc/prerequisites.inc.php b/data/web/inc/prerequisites.inc.php index 7c651803..659b0285 100644 --- a/data/web/inc/prerequisites.inc.php +++ b/data/web/inc/prerequisites.inc.php @@ -41,7 +41,15 @@ $tfa = new RobThree\Auth\TwoFactorAuth($OTP_LABEL, 6, 30, 'sha1', $qrprovider); // Redis $redis = new Redis(); -$redis->connect('redis-mailcow', 6379); +try { + $redis->connect('redis-mailcow', 6379); +} +catch (Exception $e) { +?> +
Connection to Redis failed.

The following error was reported:
getMessage();?>
+