Skip to content

Commit

Permalink
Print description in assert error summary
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSturm committed Apr 4, 2024
1 parent b4536a0 commit 46a5b13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/errors.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ print.assertr_defect <- function(x, ...){
#'
#' @export
summary.assertr_assert_error <- function(object, ...){
if (!is.na(object$description)) {
cat(object$description)
cat("\n")
}
cat(object$message)
cat("\n")
numrows <- nrow(object$error_df)
Expand Down

0 comments on commit 46a5b13

Please sign in to comment.