Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Apr 11, 2009
1 parent b9bc3d5 commit 51f7a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ply-list.r
Expand Up @@ -44,7 +44,7 @@ llply <- function(.data, .fun = NULL, ..., .progress = "none") {


res <- try(.fun(piece, ...)) res <- try(.fun(piece, ...))
if (inherits(res, "try-error")) { 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) stop("with piece ", i, ": \n", piece, call. = FALSE)
} }


Expand Down

0 comments on commit 51f7a09

Please sign in to comment.