mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
refactor(connector): [AdyenPlatform]Throw 4xx instead of 5xx for source_balance_account (#4990)
This commit is contained in:
@ -480,6 +480,11 @@ impl<T> ConnectorErrorExt<T> for error_stack::Result<T, errors::ConnectorError>
|
||||
message: errors::NotImplementedMessage::Reason(reason.to_string()),
|
||||
}
|
||||
}
|
||||
errors::ConnectorError::InvalidConnectorConfig { config } => {
|
||||
errors::ApiErrorResponse::InvalidConnectorConfiguration {
|
||||
config: config.to_string(),
|
||||
}
|
||||
}
|
||||
_ => errors::ApiErrorResponse::InternalServerError,
|
||||
};
|
||||
err.change_context(error)
|
||||
|
||||
Reference in New Issue
Block a user