Skip to content

Commit f3bf2ef

Browse files
committed
Warn on ptype2 incompatibility
1 parent f03de74 commit f3bf2ef

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

R/utilities.r

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -669,11 +669,13 @@ with_ordered_restart <- function(expr, .call) {
669669
")"
670670
)
671671

672-
deprecate_soft0(
673-
"3.4.0",
674-
I(msg),
675-
details = desc
676-
)
672+
if (inherits(cnd, "vctrs_error_ptype2")) {
673+
deprecate_soft0(
674+
"3.4.0",
675+
I(msg),
676+
details = desc
677+
)
678+
}
677679

678680
x_arg <- cnd[["x_arg"]]
679681
y_arg <- cnd[["y_arg"]]

0 commit comments

Comments
 (0)