Skip to content

Commit 22b2d43

Browse files
authored
Make APNSError.reason public again (#174)
This commit restores public access to the `APNSError.reason` property, because it's needed for library users handling APNs errors. (The status code is not an viable alternative, as there are multiple different error reasons for one status code.) The `reason` property was unintentionally set to private in commit ecf0f44 (Breakout APNSwift into packages (#170)). Notably, the associated type ErrorReason remained public.
1 parent 0bb74ee commit 22b2d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/APNSCore/APNSError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public struct APNSError: Error {
395395
public let apnsID: UUID?
396396

397397
/// The error code indicating the reason for the failure.
398-
private let reason: ErrorReason?
398+
public let reason: ErrorReason?
399399

400400
/// The date at which APNs confirmed the token was no longer valid for the topic.
401401
///

0 commit comments

Comments
 (0)