Skip to content

Commit

Permalink
comment out error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Jan 2, 2025
1 parent e57ed57 commit 11b01bc
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions R/utils_callr.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ callr_inner <- function(
) {
force(envir)
parent <- parent.frame()
result <- new.env(parent = emptyenv())
tryCatch(
out <- withCallingHandlers(
# result <- new.env(parent = emptyenv())
# tryCatch(
# out <- withCallingHandlers(
targets::tar_callr_inner_try(
targets_function = targets_function,
targets_arguments = targets_arguments,
Expand All @@ -167,17 +167,18 @@ callr_inner <- function(
store = store,
fun = fun,
pid_parent = pid_parent
),
error = function(condition) {
trace <- .traceback(x = 3L)
result$condition <- targets::tar_condition_traced(
condition = condition,
trace = trace
)
}
),
error = function(condition) {
}
)
#,
# error = function(condition) {
# trace <- .traceback(x = 3L)
# result$condition <- targets::tar_condition_traced(
# condition = condition,
# trace = trace
# )
# }
# ),
# error = function(condition) {
# }
)
if (is.null(result$condition)) {
out
Expand Down

0 comments on commit 11b01bc

Please sign in to comment.