Skip to content

Commit

Permalink
Improve an precondition failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-forooghian committed Nov 25, 2024
1 parent 3d63cec commit fe87127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/AblyChat/RoomLifecycleManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ internal actor DefaultRoomLifecycleManager<Contributor: RoomLifecycleContributor

guard let reason = stateChange.reason else {
// TODO: Decide the right thing to do here (https://github.com/ably-labs/ably-chat-swift/issues/74)
preconditionFailure("State change event with resumed == false should have a reason")
preconditionFailure("Non-initial ATTACHED state change with resumed == false should have a reason")
}

contributorAnnotations[contributor].pendingDiscontinuityEvents.append(reason)
Expand Down

0 comments on commit fe87127

Please sign in to comment.