Skip to content

Commit e2d5262

Browse files
authored
Fix partial variable match from err to error (#1591)
1 parent 59025f7 commit e2d5262

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

R/parallel-taskq.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,22 +146,22 @@ task_q <- R6::R6Class(
146146
fun <- private$tasks$fun[[task_no]]
147147
file <- private$tasks$args[[task_no]][[1]]
148148
if (is.null(fun)) {
149-
msg$err$stdout <- msg$stdout
150-
msg$err$stderr <- msg$stderr
149+
msg$error$stdout <- msg$stdout
150+
msg$error$stderr <- msg$stderr
151151
abort(
152152
paste0(
153153
"testthat subprocess failed to start, stderr:\n",
154-
msg$err$stderr
154+
msg$error$stderr
155155
),
156156
test_file = NULL,
157-
parent = msg$err,
157+
parent = msg$error,
158158
class = c("testthat_process_error", "testthat_error")
159159
)
160160
} else {
161161
abort(
162162
paste0("testthat subprocess exited in file `", file, "`"),
163163
test_file = file,
164-
parent = msg$err,
164+
parent = msg$error,
165165
class = c("testthat_process_error", "testthat_error")
166166
)
167167
}

0 commit comments

Comments
 (0)