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

Standardize vec_*() error messages with check_vector_valid() #1662

Merged
merged 7 commits into from
May 14, 2024
Merged
4 changes: 2 additions & 2 deletions R/format_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -7580,8 +7580,8 @@ fmt_duration <- function(
is.null(input_units)
) {
cli::cli_abort(c(
"When there are numeric columns to format, `input_units` must not be `NULL`.",
"*" = "Use one of \"seconds\", \"minutes\", \"hours\", \"days\", or \"weeks\"."
"{.arg input_units} must be supplied when there are numeric columns to format.",
"i" = "Use one of \"seconds\", \"minutes\", \"hours\", \"days\", or \"weeks\"."
))
}

Expand Down
Loading
Loading