pub fn handle_database_error(
target: &str,
message: &str,
error: impl Debug,
) -> Error
Expand description
Logs and converts a database error into a [DatabaseError
].
This function ensures the error is logged contextually before being returned.