Permalink
Browse files

Improve error message

  • Loading branch information...
1 parent b9bc3d5 commit 51f7a09c99874f1aa42b6744118c58a37c877976 @hadley committed Apr 11, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 R/ply-list.r
View
@@ -44,7 +44,7 @@ llply <- function(.data, .fun = NULL, ..., .progress = "none") {
res <- try(.fun(piece, ...))
if (inherits(res, "try-error")) {
- piece <- capture.output(print.default(piece))
+ piece <- paste(capture.output(print(piece)), collapse = "\n")
stop("with piece ", i, ": \n", piece, call. = FALSE)
}

0 comments on commit 51f7a09

Please sign in to comment.