Skip to content

Commit

Permalink
Don't break error message in code
Browse files Browse the repository at this point in the history
  • Loading branch information
mb706 committed Jun 30, 2024
1 parent 6ae3853 commit fb62bbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/PipeOpLearner.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ PipeOpLearner = R6Class("PipeOpLearner", inherit = PipeOp,
private$.learner = as_learner(learner, clone = TRUE)
id = id %??% private$.learner$id
if (!test_po_validate(get0("validate", private$.learner))) {
stopf(paste0(
"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()."
), id) # nolint
stopf(
"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
id
)
}
# FIXME: can be changed when mlr-org/mlr3#470 has an answer
type = private$.learner$task_type
Expand Down

0 comments on commit fb62bbc

Please sign in to comment.