Skip to content

Commit

Permalink
fix: added .dataNotAllowed as well as a network error and updated tes…
Browse files Browse the repository at this point in the history
…ts for it
  • Loading branch information
desusai7 committed May 2, 2024
1 parent 106bae2 commit d9da132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Auth0/AuthenticationError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public struct AuthenticationError: Auth0APIError {
}

let networkErrorCodes: [URLError.Code] = [
.dataNotAllowed,
.notConnectedToInternet,
.networkConnectionLost,
.dnsLookupFailed,
Expand Down Expand Up @@ -183,7 +184,7 @@ extension AuthenticationError {

return "Received error with code \(self.code)."
}

Check warning on line 187 in Auth0/AuthenticationError.swift

View workflow job for this annotation

GitHub Actions / Lint code with SwiftLint

Lines should not have trailing whitespace (trailing_whitespace)
}

// MARK: - Equatable
Expand Down
1 change: 1 addition & 0 deletions Auth0Tests/AuthenticationErrorSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ class AuthenticationErrorSpec: QuickSpec {

it("should detect network error") {
let networkErrorCodes: [URLError.Code] = [
.dataNotAllowed,
.notConnectedToInternet,
.networkConnectionLost,
.dnsLookupFailed,
Expand Down

0 comments on commit d9da132

Please sign in to comment.