refactor(Email): enhance error handling in SMTP and resend methods by passing context to handleError function

This commit is contained in:
Andras Bacsai 2025-04-12 14:04:34 +02:00
parent de839e3fcb
commit 6eea3c50d8
2 changed files with 3 additions and 3 deletions

View file

@ -269,7 +269,7 @@ public function submitSmtp()
} catch (\Throwable $e) {
$this->smtpEnabled = false;
return handleError($e);
return handleError($e, $this);
}
}

View file

@ -177,7 +177,7 @@ public function submitSmtp()
} catch (\Throwable $e) {
$this->smtpEnabled = false;
return handleError($e);
return handleError($e, $this);
}
}
@ -207,7 +207,7 @@ public function submitResend()
} catch (\Throwable $e) {
$this->resendEnabled = false;
return handleError($e);
return handleError($e, $this);
}
}