Skip to content

Commit

Permalink
Use traceback instead of dump.frame
Browse files Browse the repository at this point in the history
traceback properly ignores errors inside of try blocks, so it is safe to
use as the default error handler.

Fixes #88
  • Loading branch information
jimhester committed Jun 24, 2015
1 parent c9a2e6a commit 4b308ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: covr
Title: Test Coverage for Packages
Version: 1.1.2
Version: 1.2.0
Authors@R: person("Jim", "Hester", email = "[email protected]", role = c("aut", "cre"))
Description: Track and report code coverage for your package and (optionally)
upload the results to a coverage service like Codecov (http://codecov.io)
Expand Down
2 changes: 1 addition & 1 deletion R/subprocess.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ subprocess <- function(code, calling_env = parent.frame(),

command <- sprintf(
paste(sep = "\n",
"options(error = quote({dump.frames(to.file = TRUE); q(status = 1)}))",
"options(error = function() traceback(2))",
"options(warn = 1)",
"load('%s')",
".code <- readRDS('%s')",
Expand Down

0 comments on commit 4b308ec

Please sign in to comment.