New .inherit = <bool> argument. This controls whether cnd_inherits() and try_fetch() are allowed to match parent conditions. The default is TRUE in abort(). In warn() and inform(), the default is TRUE in the general case, and FALSE when parent is a condition of higher severity. This prevents matching downgraded conditions unexpectedly.
The parameter is stored in cnd$rlang$inherit. This is a public field (otherwise it'd be stored in rlang$internal$. It's namespaced to avoid name clashes with subclasses.
Follow up to #1573 (see discussion there).
New
.inherit = <bool>
argument. This controls whethercnd_inherits()
andtry_fetch()
are allowed to match parent conditions. The default isTRUE
inabort()
. Inwarn()
andinform()
, the default isTRUE
in the general case, andFALSE
whenparent
is a condition of higher severity. This prevents matching downgraded conditions unexpectedly.The parameter is stored in
cnd$rlang$inherit
. This is a public field (otherwise it'd be stored inrlang$internal$
. It's namespaced to avoid name clashes with subclasses.cc @DavisVaughan @gaborcsardi