Skip to content

Commit aacdcad

Browse files
authored
Merge pull request forcedotcom#3953 from bbirman/actionable-notifications-error
Surface network error for actionable notifications
2 parents 61e2236 + 27bf5db commit aacdcad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/SalesforceSDKCore/SalesforceSDKCore/Classes/Extensions/PushNotificationManager+ActionableNotifications.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ public extension PushNotificationManager {
114114
do {
115115
let response = try await client.send(request: request)
116116
return try response.asDecodable(type: ActionResultRepresentation.self)
117+
} catch RestClientError.apiFailed(_, let underlyingError, _) {
118+
throw underlyingError
117119
} catch {
118120
throw PushNotificationManagerError.notificationActionInvocationFailed(error.localizedDescription)
119121
}

0 commit comments

Comments
 (0)