Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi_predict error message has an error #482

Closed
topepo opened this issue May 4, 2021 · 1 comment · Fixed by #484
Closed

multi_predict error message has an error #482

topepo opened this issue May 4, 2021 · 1 comment · Fixed by #484
Labels
bug an unexpected problem or unintended behavior next release 🚀

Comments

@topepo
Copy link
Member

topepo commented May 4, 2021

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)}'"

@topepo topepo added bug an unexpected problem or unintended behavior next release 🚀 labels May 4, 2021
@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior next release 🚀
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant