summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-03 19:34:42 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-10-03 19:34:42 +0000
commitcd62de1d6003c11b6056f630aa9fe4b5931c6507 (patch)
tree059ab9e08aaa2eef03688783f283e06a4932d6a2 /src
parent6128a983f23a52138bc6cd84625246013b6097fb (diff)
Capture DB errors on Sentry
Diffstat (limited to 'src')
-rw-r--r--src/errors.rs1
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
}
}