mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
chore: fix error message for deserialization (#885)
This commit is contained in:
@ -36,7 +36,9 @@ pub async fn create_customer(
|
||||
.peek()
|
||||
.clone()
|
||||
.parse_value("AddressDetails")
|
||||
.change_context(errors::ApiErrorResponse::AddressNotFound)?;
|
||||
.change_context(errors::ApiErrorResponse::InvalidDataValue {
|
||||
field_name: "address",
|
||||
})?;
|
||||
db.insert_address(storage::AddressNew {
|
||||
city: customer_address.city,
|
||||
country: customer_address.country,
|
||||
|
||||
Reference in New Issue
Block a user