diff --git a/editoast/editoast_models/src/model.rs b/editoast/editoast_models/src/model.rs index 1ba087c9196..8b9638d6400 100644 --- a/editoast/editoast_models/src/model.rs +++ b/editoast/editoast_models/src/model.rs @@ -31,6 +31,7 @@ impl From for Error { constraint: captures.get(1).unwrap().as_str().to_string(), } } else { + // falling back to the generic error — since it's still semantically correct, logging the error is enough tracing::error!(?RE, %e, "failed to parse PostgreSQL error message"); Self::DatabaseError(e.into()) } @@ -48,6 +49,7 @@ impl From for Error { constraint: captures.get(2).unwrap().as_str().to_string(), } } else { + // falling back to the generic error — since it's still semantically correct, logging the error is enough tracing::error!(?RE, %e, "failed to parse PostgreSQL error message"); Self::DatabaseError(e.into()) }