We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4536a0 + 5acd465 commit e484665Copy full SHA for e484665
NEWS
@@ -1,5 +1,7 @@
1
# assertr development version
2
3
+* Assert errors now print the description in the error summary (PR #132)
4
+
5
* Added the ability to check non-numeric classes with `within_bounds()`
6
(fix #89)
7
R/errors.R
@@ -148,6 +148,10 @@ print.assertr_defect <- function(x, ...){
148
#'
149
#' @export
150
summary.assertr_assert_error <- function(object, ...){
151
+ if (!is.na(object$description)) {
152
+ cat(object$description)
153
+ cat("\n")
154
+ }
155
cat(object$message)
156
cat("\n")
157
numrows <- nrow(object$error_df)
0 commit comments