Skip to content

Commit c853968

Browse files
ollitapambrandonw
authored andcommitted
Print offending action on Store.send assertion (#188)
* Print offending action on Store.send assertion * Reword Store.send assert Co-authored-by: Brandon Williams <[email protected]>
1 parent 5b242b5 commit c853968

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/ComposableArchitecture/Store.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ public final class Store<State, Action> {
139139
if self.isSending {
140140
assertionFailure(
141141
"""
142-
The store was sent an action while it was already processing another action. This can \
143-
happen for a few reasons:
142+
The store was sent the action \(debugCaseOutput(action)) while it was already
143+
processing another action.
144+
145+
This can happen for a few reasons:
144146
145147
* The store was sent an action recursively. This can occur when you run an effect \
146148
directly in the reducer, rather than returning it from the reducer. Check the stack (⌘7) \

0 commit comments

Comments
 (0)