diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-10-03 19:34:42 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-10-03 19:34:42 +0000 |
| commit | cd62de1d6003c11b6056f630aa9fe4b5931c6507 (patch) | |
| tree | 059ab9e08aaa2eef03688783f283e06a4932d6a2 | |
| parent | 6128a983f23a52138bc6cd84625246013b6097fb (diff) | |
Capture DB errors on Sentry
| -rw-r--r-- | src/errors.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index c30888e..6b5451b 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -59,6 +59,7 @@ impl IntoResponse for AppError { impl From<sqlx::Error> for AppError { fn from(error: sqlx::Error) -> AppError { tracing::error!("{:?}", error); + sentry::capture_error(&error); AppError::Database } } |
