Skip to content

Commit

Permalink
Merge pull request #456 from chickdan/improve_412_code_entry
Browse files Browse the repository at this point in the history
Descriptive error for login status code 412
  • Loading branch information
MattKiazyk authored Dec 13, 2023
2 parents f25fc39 + c0cff48 commit 98b986a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Xcodes/AppleAPI/Sources/AppleAPI/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ public class Client {
return (data, urlResponse)
case 400, 401:
throw AuthenticationError.incorrectSecurityCode
case 412:
throw AuthenticationError.appleIDAndPrivacyAcknowledgementRequired
case let code:
throw AuthenticationError.badStatusCode(statusCode: code, data: data, response: urlResponse)
}
Expand Down

0 comments on commit 98b986a

Please sign in to comment.