Skip to content

Commit

Permalink
Minor improvement in error messages (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher authored Apr 24, 2024
1 parent 9898f0a commit 2988ec2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions R/dotdotdot.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ unpack_bool_expr_result = function(...) {
if (!is.null(names(l))) {
Err_plain(
"Detected a named input.",
"This usually means that you've used `=` instead of `==`.",
"Some names seen:", head(names(l))
"This usually means that you've used `=` instead of `==`."
)
} else {
l |>
Expand Down
2 changes: 1 addition & 1 deletion R/error__rpolarserr.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bad_robj = function(r) {
}

Err_plain = function(...) {
Err(.pr$Err$new()$plain(paste0(..., collapse = " ")))
Err(.pr$Err$new()$plain(paste(..., collapse = " ")))
}

# short hand for extracting an error context in unit testing, will raise error if not an RPolarsErr
Expand Down

0 comments on commit 2988ec2

Please sign in to comment.