Merge pull request #456 from chickdan/improve_412_code_entry

Descriptive error for login status code 412
This commit is contained in:
Matt Kiazyk 2023-12-12 21:30:17 -06:00 committed by GitHub
commit 98b986a30d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}