Consistent error message casing.
This commit is contained in:
+3
-3
@@ -36,10 +36,10 @@ impl IntoResponse for AppError {
|
||||
return error_response(StatusCode::UNPROCESSABLE_ENTITY, error.to_string());
|
||||
}
|
||||
Self::Repository(RepositoryError::Database(error)) => {
|
||||
tracing::error!(%error, "Database query failed");
|
||||
tracing::error!(%error, "database query failed");
|
||||
}
|
||||
Self::Repository(RepositoryError::Decode(error)) => {
|
||||
tracing::error!(%error, "Invalid stored data");
|
||||
tracing::error!(%error, "invalid stored data");
|
||||
}
|
||||
Self::Repository(RepositoryError::ReferenceViolation {
|
||||
relation: ReferenceRelation::SourceAccount,
|
||||
@@ -76,7 +76,7 @@ impl IntoResponse for AppError {
|
||||
kind,
|
||||
source,
|
||||
}) => {
|
||||
tracing::error!(%relation, %kind, error = ?source, "Unhandled reference violation");
|
||||
tracing::error!(%relation, %kind, error = ?source, "unhandled reference violation");
|
||||
}
|
||||
Self::Repository(RepositoryError::QueryConversion(error)) => {
|
||||
return error_response(StatusCode::BAD_REQUEST, error.to_string());
|
||||
|
||||
Reference in New Issue
Block a user