Skip to content

Commit

Permalink
handle_error() in xfun 0.44 requires only one argument in the handler…
Browse files Browse the repository at this point in the history
… function
  • Loading branch information
yihui committed May 15, 2024
1 parent efd6aa0 commit da8b5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/output.R
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ process_file = function(text, output) {
if (tangle) process_tangle(group) else process_group(group),
error = function(e) if (xfun::pkg_available('rlang', '1.0.0')) rlang::entrace(e)
),
function(e, loc) {
function(loc) {
setwd(wd)
write_utf8(res, output %n% stdout())
paste0('\nQuitting from lines ', loc)
Expand Down

0 comments on commit da8b5e2

Please sign in to comment.