Skip to content

Commit fb62bbc

Browse files
committed
Don't break error message in code
1 parent 6ae3853 commit fb62bbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/PipeOpLearner.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ PipeOpLearner = R6Class("PipeOpLearner", inherit = PipeOp,
9898
private$.learner = as_learner(learner, clone = TRUE)
9999
id = id %??% private$.learner$id
100100
if (!test_po_validate(get0("validate", private$.learner))) {
101-
stopf(paste0(
102-
"Validate field of PipeOp '%s' must either be NULL or 'predefined'.\nTo configure how ",
103-
"the validation data is created, set the $validate field of the GraphLearner, e.g. using set_validate()."
104-
), id) # nolint
101+
stopf(
102+
"Validate field of PipeOp '%s' must either be NULL or 'predefined'.\nTo configure how the validation data is created, set the $validate field of the GraphLearner, e.g. using set_validate().", # nolint
103+
id
104+
)
105105
}
106106
# FIXME: can be changed when mlr-org/mlr3#470 has an answer
107107
type = private$.learner$task_type

0 commit comments

Comments
 (0)