put the custom class(es) in the first as Hadley suggested

This commit is contained in:
Yihui Xie
2014-05-08 15:04:49 -07:00
parent 62ec9291d8
commit 342265be94

View File

@@ -892,7 +892,7 @@ isTruthy <- function(x) {
stopWithCondition <- function(class, message) {
cond <- structure(
list(message = message),
class = c('error', 'condition', class)
class = c(class, 'error', 'condition')
)
stop(cond)
}