Skip to content

Commit 9338d58

Browse files
committed
call. = FALSE in stop
1 parent 4ef8d79 commit 9338d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/layer.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Layer <- ggproto("Layer", NULL,
107107
} else if (is.function(self$data)) {
108108
data <- self$data(plot_data)
109109
if (!is.data.frame(data)) {
110-
stop("Data function must return a data.frame")
110+
stop("Data function must return a data.frame", call. = FALSE)
111111
}
112112
} else {
113113
data <- self$data

0 commit comments

Comments
 (0)