Skip to content

multi_predict error message has an error #482

Closed
@topepo

Description

@topepo

This code:

multi_predict.default <- function(object, ...)
  rlang::abort(
    glue::glue(
      "No `multi_predict` method exists for objects with classes ",
      glue::glue_collapse(glue::glue("'{class()}'"), sep = ", ")
      )
    )

gives a wrong error message of

Error in class(): 0 arguments passed to 'class' which requires 1"

It should probably use "'{class(object)}'"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviornext release 🚀

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions