Skip to content

Commit

Permalink
Merge pull request #19 from checkout/fix/HTTP-422-error-handling
Browse files Browse the repository at this point in the history
Fix HTTP 422 custom error handling
  • Loading branch information
okhan-okbay-cko authored Mar 27, 2024
2 parents bb96091 + 4de5d05 commit 53f91a4
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 53f91a4

Please sign in to comment.