Skip to content

Commit 380c3b1

Browse files
committed
Merge pull request #1034 from setempler/patch
layer.r: added missing error message newline/spacer
2 parents dc84296 + 7adb431 commit 380c3b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/layer.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ Layer <- proto(expr = {
154154

155155
wrong <- lengths != 1 & lengths != n
156156
if (any(wrong)) {
157-
stop("Aesthetics must either be length one, or the same length as the data",
158-
"Problems:", paste(aesthetics[wrong], collapse = ", "), call. = FALSE)
157+
stop("Aesthetics must either be length one, or the same length as the data.",
158+
"\nProblems: ", paste(aesthetics[wrong], collapse = ", "), call. = FALSE)
159159
}
160160

161161
if (empty(data) && n > 0) {

0 commit comments

Comments
 (0)