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

Commit b38257e

Browse files
committed
Make WordPressComRestApiError CaseIterable
1 parent 7198442 commit b38257e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/CoreAPI/WordPressOrgXMLRPCApi.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ private class SessionDelegate: NSObject, URLSessionDelegate {
290290
}
291291

292292
/// Error constants for the WordPress XML-RPC API
293-
@objc public enum WordPressOrgXMLRPCApiError: Int, Error {
293+
@objc public enum WordPressOrgXMLRPCApiError: Int, Error, CaseIterable {
294294
/// An error HTTP status code was returned.
295295
case httpErrorStatusCode
296296
/// The serialization of the request failed.
@@ -428,5 +428,4 @@ private extension WordPressAPIError where EndpointError == WordPressOrgXMLRPCApi
428428

429429
return WordPressOrgXMLRPCApi.convertError(error, data: data, statusCode: statusCode)
430430
}
431-
432431
}

0 commit comments

Comments
 (0)