Skip to content

Commit 98b986a

Browse files
authored
Merge pull request #456 from chickdan/improve_412_code_entry
Descriptive error for login status code 412
2 parents f25fc39 + c0cff48 commit 98b986a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Xcodes/AppleAPI/Sources/AppleAPI/Client.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ public class Client {
180180
return (data, urlResponse)
181181
case 400, 401:
182182
throw AuthenticationError.incorrectSecurityCode
183+
case 412:
184+
throw AuthenticationError.appleIDAndPrivacyAcknowledgementRequired
183185
case let code:
184186
throw AuthenticationError.badStatusCode(statusCode: code, data: data, response: urlResponse)
185187
}

0 commit comments

Comments
 (0)