Skip to content

Commit

Permalink
disable code coverage for default_error_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
lwalejko committed Mar 5, 2024
1 parent 72c0a3a commit 8c34747
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/error-handling.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ setup_invalid_json_handler <- function(api) {
})
}

# nocov start
default_error_handler <- function(req, res, error) {
print(error, simplify = "branch")

Expand All @@ -110,6 +111,7 @@ default_error_handler <- function(req, res, error) {
error = "500 - Internal server error"
)
}
# nocov end

with_err_handler <- function(expr) {
withCallingHandlers(
Expand Down

0 comments on commit 8c34747

Please sign in to comment.