Skip to content

Commit

Permalink
restore error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Oct 16, 2023
1 parent 8e0a758 commit f83b0af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/utils_callr.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ callr_inner <- function(
) {
force(envir)
parent <- parent.frame()
# tryCatch(
tryCatch(
targets::tar_callr_inner_try(
targets_function = targets_function,
targets_arguments = targets_arguments,
Expand All @@ -104,9 +104,9 @@ callr_inner <- function(
script = script,
store = store,
fun = fun
)#,
# error = function(condition) condition
# )
),
error = function(condition) condition
)
}

#' @title Invoke a `targets` task from inside a `callr` function.
Expand Down

0 comments on commit f83b0af

Please sign in to comment.