From 3dafbda60285f82bbff1c7dc60ef3ee57dd25ea4 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Tue, 27 Aug 2019 12:26:20 +0300 Subject: [PATCH] Fixed missing exception --- app/controllers/auth.php | 6 +++--- app/controllers/teams.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/auth.php b/app/controllers/auth.php index f690c84a5f..c3f600e8ca 100644 --- a/app/controllers/auth.php +++ b/app/controllers/auth.php @@ -146,7 +146,7 @@ $utopia->post('/v1/auth/register') try { $mail->send(); } - catch(Exception $error) { + catch(\Exception $error) { // if($failure) { // $response->redirect($failure); // return; @@ -286,7 +286,7 @@ $utopia->post('/v1/auth/register/confirm/resend') try { $mail->send(); } - catch(Exception $error) { + catch(\Exception $error) { //throw new Exception('Problem sending mail: ' . $error->getError(), 500); } @@ -518,7 +518,7 @@ $utopia->post('/v1/auth/recovery') try { $mail->send(); } - catch(Exception $error) { + catch(\Exception $error) { //throw new Exception('Problem sending mail: ' . $error->getError(), 500); } diff --git a/app/controllers/teams.php b/app/controllers/teams.php index 7ef713749e..94a977865c 100644 --- a/app/controllers/teams.php +++ b/app/controllers/teams.php @@ -382,7 +382,7 @@ $utopia->post('/v1/teams/:teamId/memberships') try { $mail->send(); } - catch(Exception $error) { + catch(\Exception $error) { //throw new Exception('Problem sending mail: ' . $error->getError(), 500); } @@ -463,7 +463,7 @@ $utopia->post('/v1/teams/:teamId/memberships/:inviteId/resend') try { $mail->send(); } - catch(Exception $error) { + catch(\Exception $error) { //throw new Exception('Problem sending mail: ' . $error->getError(), 500); }