Skip to content

Commit

Permalink
Improve stack trace by wrapping reporter in separate function
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy authored Jul 22, 2024
1 parent f060cce commit 7fc9902
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/reporter-progress.R
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,11 @@ ProgressReporter <- R6::R6Class("ProgressReporter",
snapshotter$end_file()
}

stop_reporter(c(
msg <- c(
"Maximum number of failures exceeded; quitting at end of file.",
i = "Increase this number with (e.g.) {.run testthat::set_max_fails(Inf)}"
))
)
stop_reporter(msg)
}
},

Expand Down

0 comments on commit 7fc9902

Please sign in to comment.