summaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.rs')
-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
}
}