Update exception handling in Handler and TestEmailController for improved error reporting
All checks were successful
Deploy Production (crewsportswear.com) / deploy (push) Successful in 1m51s

This commit is contained in:
Frank John Begornia
2026-02-26 22:58:28 +08:00
parent 47b354d8b7
commit 701a433174
2 changed files with 10 additions and 4 deletions

View File

@@ -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();
}