Skip to content

Don't rescue Failures from other contexts#192

Merged
gaffneyc merged 1 commit intocollectiveidea:masterfrom
connectedbits:dont-swallow-nested-failures
Jan 24, 2022
Merged

Don't rescue Failures from other contexts#192
gaffneyc merged 1 commit intocollectiveidea:masterfrom
connectedbits:dont-swallow-nested-failures

Conversation

@jqr
Copy link
Contributor

@jqr jqr commented Dec 3, 2020

I believe this resolves #170, or at least the portion of it we're running into.

This change modifies the rescue in run to only apply to Failures which share the exact same context object. This should allow nesting of a.run { b.run! } without a consuming b's Failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.success? still reporting true when interactor invoked via .call is calling internally another interactor with .call! and latter fails

2 participants