Skip to content

Commit 0a79ceb

Browse files
Merge pull request #589 from landovsky/patch-1
Clarify effects of adding errors during execution
2 parents e9c6618 + d9c3338 commit 0a79ceb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,8 @@ outcome.errors.details
12211221
Detailed errors can also be manually added during the execute call by passing a
12221222
symbol to `#add` instead of a string.
12231223

1224+
Adding an error at any point during #execute will flag the interaction as invalid. The `#execute` method will, however, run to completion. Interaction started with `.run!` will raise `ActiveInteraction::InvalidInteractionError`.
1225+
12241226
``` rb
12251227
def execute
12261228
errors.add(:monster, :no_passage)

0 commit comments

Comments
 (0)