Skip to content

Commit

Permalink
Always return a bool from restarts
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 committed Oct 9, 2024
1 parent 8e0f5e8 commit 40ae51e
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}

Check warning on line 155 in R/evaluate.R

View check run for this annotation

Codecov / codecov/patch

R/evaluate.R#L155

Added line #L155 was not covered by tests
)
watcher$check_devices()

Expand Down

0 comments on commit 40ae51e

Please sign in to comment.