mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
fix: add fallback to reverselookup error (#3025)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -251,14 +251,6 @@ pub(crate) fn diesel_error_to_data_error(
|
||||
entity: "entity ",
|
||||
key: None,
|
||||
},
|
||||
diesel_models::errors::DatabaseError::NoFieldsToUpdate => {
|
||||
StorageError::DatabaseError("No fields to update".to_string())
|
||||
}
|
||||
diesel_models::errors::DatabaseError::QueryGenerationFailed => {
|
||||
StorageError::DatabaseError("Query generation failed".to_string())
|
||||
}
|
||||
diesel_models::errors::DatabaseError::Others => {
|
||||
StorageError::DatabaseError("Others".to_string())
|
||||
}
|
||||
_ => StorageError::DatabaseError(error_stack::report!(*diesel_error)),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user