Skip to content

Commit

Permalink
Fix HTTP 422 custom error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
okhan-okbay-cko committed Mar 27, 2024
1 parent bb96091 commit 4de5d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CheckoutNetwork/CheckoutNetworkClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class CheckoutNetworkClient: CheckoutClientInterface {
completionHandler(error)
return
}
if let responseError = self.getErrorFromResponse(response, data: nil) {
if let responseError = self.getErrorFromResponse(response, data: data) {
completionHandler(responseError)
return
}
Expand Down

0 comments on commit 4de5d05

Please sign in to comment.