Skip to content

Commit

Permalink
Always return a bool from restarts (#226)
Browse files Browse the repository at this point in the history
Fixes #225

I can't remember exactly why this comes up, but clearly in some circumstances rethrowing the error doesn't trigger immediate termination. This shouldn't have widespread effects.
  • Loading branch information
hadley authored Oct 9, 2024
1 parent 8e0f5e8 commit acb1ba9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# evaluate (development version)

* Fix buglet revealed when by using `rlang::abort()` inside of `evaluate()`.

# evaluate 1.0.0

* Setting `ACTIONS_STEP_DEBUG=1` (as in a failing GHA workflow) will
Expand Down
2 changes: 1 addition & 1 deletion R/evaluate.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ evaluate <- function(input,
),
eval_continue = function() TRUE,
eval_stop = function() FALSE,
eval_error = function(cnd) signalCondition(cnd)
eval_error = function(cnd) {signalCondition(cnd); FALSE}
)
watcher$check_devices()

Expand Down

0 comments on commit acb1ba9

Please sign in to comment.