Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 5b2c433

Browse files
committed
Update code comments
1 parent e9f7695 commit 5b2c433

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WordPressKit/WordPressAPIError.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ public enum WordPressAPIError<EndpointError>: Error where EndpointError: Localiz
1313
case requestEncodingFailure
1414
/// Error occured in the HTTP connection.
1515
case connection(URLError)
16-
/// The API call returned an error result. For example, an OAuth endpoint may returns an 'incorrect username or password' error, an upload media endpoint may return an 'unsupported media type' error.
16+
/// The API call returned an error result. For example, an OAuth endpoint may return an 'incorrect username or password' error, an upload media endpoint may return an 'unsupported media type' error.
1717
case endpointError(EndpointError)
18-
/// The API call returned an HTTP response that WordPressKit can't parse.
18+
/// 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.
1919
case unparsableResponse(response: HTTPURLResponse?, body: Data?)
2020
/// Other error occured.
2121
case unknown(underlyingError: Error)
@@ -26,7 +26,7 @@ extension WordPressComOAuthError: LocalizedError {
2626
public var errorDescription: String? {
2727
switch self {
2828
case .requestEncodingFailure, .unparsableResponse:
29-
// This is a programming error
29+
// These are usually programming errors.
3030
return Self.unknownErrorMessage
3131
case let .endpointError(error):
3232
return error.errorDescription

0 commit comments

Comments
 (0)