You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: Sources/WordPressKit/WordPressAPI/WordPressAPIError.swift
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,10 @@ public enum WordPressAPIError<EndpointError>: Error where EndpointError: Localiz
18
18
/// The API call returned an status code that's unacceptable to the endpoint.
19
19
case unacceptableStatusCode(response:HTTPURLResponse, body:Data)
20
20
/// The API call returned an HTTP response that WordPressKit can't parse. Receiving this error could be an indicator that there is an error response that's not handled properly by WordPressKit.
21
-
case unparsableResponse(response:HTTPURLResponse?, body:Data?, underlyingError:Error)
21
+
case unparsableResponse(response:HTTPURLResponse?, body:Data?, underlyingError:Error=URLError(.cannotParseResponse))
0 commit comments