Skip to content

Commit 1677b2d

Browse files
ollitapambrandonw
andauthored
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]> Co-authored-by: Brandon Williams <[email protected]>
1 parent e4447bf commit 1677b2d

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
@@ -144,8 +144,10 @@ public final class Store<State, Action> {
144144
if self.isSending {
145145
assertionFailure(
146146
"""
147-
The store was sent an action while it was already processing another action. This can \
148-
happen for a few reasons:
147+
The store was sent the action \(debugCaseOutput(action)) while it was already
148+
processing another action.
149+
150+
This can happen for a few reasons:
149151
150152
* The store was sent an action recursively. This can occur when you run an effect \
151153
directly in the reducer, rather than returning it from the reducer. Check the stack (⌘7) \

0 commit comments

Comments
 (0)