refactor(email): improve error handling by passing context to handleError

This commit is contained in:
Andras Bacsai
2025-03-28 18:44:03 +01:00
parent f060b7d3d2
commit 39cb270eb7

View File

@@ -235,7 +235,7 @@ class SettingsEmail extends Component
throw new \Exception('Too many messages sent!');
}
} catch (\Throwable $e) {
return handleError($e);
return handleError($e, $this);
}
}
}