mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Merge pull request #456 from chickdan/improve_412_code_entry
Descriptive error for login status code 412
This commit is contained in:
commit
98b986a30d
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue