mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +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:
@ -92,15 +92,7 @@ impl Into<DataStorageError> for &StorageError {
|
||||
key: None,
|
||||
}
|
||||
}
|
||||
storage_errors::DatabaseError::NoFieldsToUpdate => {
|
||||
DataStorageError::DatabaseError("No fields to update".to_string())
|
||||
}
|
||||
storage_errors::DatabaseError::QueryGenerationFailed => {
|
||||
DataStorageError::DatabaseError("Query generation failed".to_string())
|
||||
}
|
||||
storage_errors::DatabaseError::Others => {
|
||||
DataStorageError::DatabaseError("Unknown database error".to_string())
|
||||
}
|
||||
err => DataStorageError::DatabaseError(error_stack::report!(*err)),
|
||||
},
|
||||
StorageError::ValueNotFound(i) => DataStorageError::ValueNotFound(i.clone()),
|
||||
StorageError::DuplicateValue { entity, key } => DataStorageError::DuplicateValue {
|
||||
|
||||
Reference in New Issue
Block a user