Skip to content

Commit ec89503

Browse files
committed
fix bad error handler
1 parent c41e785 commit ec89503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ save_outputs <- function(gg, name) {
5858
res <- RSassign(conn, plotly:::plotlyEnv, "plotlyEnv")
5959
res <- RSeval(conn, "unlockBinding('plotlyEnv', asNamespace('plotly'))")
6060
res <- RSeval(conn, "assign('plotlyEnv', plotlyEnv, pos = asNamespace('plotly'))")
61-
pm <- RSeval(conn, "tryCatch(plotly::plotly_build(gg), function(e) 'plotly build error'")
61+
pm <- RSeval(conn, "tryCatch(plotly::plotly_build(gg), error = function(e) 'plotly build error')")
6262
# it could be that the hash didn't exist, so make sure they're different
6363
if (plot_hash != digest::digest(pm)) {
6464
test_dir <- file.path(this_dir, gsub("\\s+", "-", name))

0 commit comments

Comments
 (0)