From dc16902fcaacea11899b5af7e1680fbf965c076e Mon Sep 17 00:00:00 2001 From: Christophe Vuagniaux Date: Sat, 21 Oct 2017 18:11:11 +0200 Subject: [PATCH] Don't block backend connection when a plugin migration triggers exception (#3188) --- modules/backend/controllers/Auth.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/backend/controllers/Auth.php b/modules/backend/controllers/Auth.php index 54118e771..a024c6b18 100644 --- a/modules/backend/controllers/Auth.php +++ b/modules/backend/controllers/Auth.php @@ -85,8 +85,13 @@ class Auth extends Controller 'password' => post('password') ], $remember); - // Load version updates - UpdateManager::instance()->update(); + try { + // Load version updates + UpdateManager::instance()->update(); + } + catch (Exception $ex) { + Flash::error($ex->getMessage()); + } // Log the sign in event AccessLog::add($user);