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