Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhesh195 committed Feb 7, 2024
1 parent 21b723c commit 6305a3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/z_print.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ animint <- function(...){

# Check if argument list is empty
if(length(L) == 0) {
stop(paste("No arguments passed to animint"))
stop("No arguments passed to animint. Arguments should 1 or more include ggplot and 0 or more options")
}

# Generate a list of duplicate named arguments
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-compiler-errors.R
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,5 @@ test_that("animint(out.dir = 'dir1', out.dir = 'dir2') is an error", {
test_that("animint() is an error", {
expect_error({
animint()
}, "No arguments passed to animint. Arguments should include ggplot(1 or more) and options(0 or more)")
}, "No arguments passed to animint. Arguments should 1 or more include ggplot and 0 or more options")
})

0 comments on commit 6305a3b

Please sign in to comment.