You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-09 04:22:45 +03:00
Capture better errors in Sentry
This commit is contained in:
@@ -52,6 +52,7 @@ impl<E: std::fmt::Debug + std::fmt::Display> From<E> for FancyError {
|
||||
impl IntoResponse for FancyError {
|
||||
fn into_response(self) -> Response {
|
||||
let error = format!("{:?}", self.context);
|
||||
sentry::capture_message(&error, sentry::Level::Error);
|
||||
(
|
||||
StatusCode::INTERNAL_SERVER_ERROR,
|
||||
Extension(self.context),
|
||||
|
Reference in New Issue
Block a user