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 @@ class Email extends Component
} catch (\Throwable $e) {
$this->smtpEnabled = false;
return handleError($e);
return handleError($e, $this);
}
}

View File

@@ -177,7 +177,7 @@ class SettingsEmail extends Component
} catch (\Throwable $e) {
$this->smtpEnabled = false;
return handleError($e);
return handleError($e, $this);
}
}
@@ -207,7 +207,7 @@ class SettingsEmail extends Component
} catch (\Throwable $e) {
$this->resendEnabled = false;
return handleError($e);
return handleError($e, $this);
}
}