Update exception handling in Handler and TestEmailController for improved error reporting
All checks were successful
Deploy Production (crewsportswear.com) / deploy (push) Successful in 1m51s
All checks were successful
Deploy Production (crewsportswear.com) / deploy (push) Successful in 1m51s
This commit is contained in:
@@ -36,7 +36,7 @@ class TestEmailController extends Controller
|
||||
|
||||
$status = 'success';
|
||||
$message = 'Test email sent successfully to ' . $recipient . '.';
|
||||
} catch (\Exception $e) {
|
||||
} catch (\Throwable $e) {
|
||||
$status = 'danger';
|
||||
$message = 'Failed to send email: ' . $e->getMessage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user