Skip to content

Commit 5c4ea9c

Browse files
committed
Tweak error message.
Closes #1503
1 parent 0ce1c74 commit 5c4ea9c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

R/fortify.r

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ fortify.data.frame <- function(model, data, ...) model
1717
fortify.NULL <- function(model, data, ...) waiver()
1818
#' @export
1919
fortify.default <- function(model, data, ...) {
20-
21-
stop("ggplot2 doesn't know how to deal with data of class ", class(model), call. = FALSE)
20+
stop(
21+
"ggplot2 doesn't know how to deal with data of class ",
22+
paste(class(model), collapse = "/"),
23+
call. = FALSE
24+
)
2225
}

0 commit comments

Comments
 (0)