Skip to content

Commit

Permalink
chore: More explicit message on constructive errors
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Dec 7, 2024
1 parent 917c983 commit 96d43db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/spec-meta-bind-runner.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,13 @@ test_select_bind_expr_one$fun <- function(
}

construct_expr <- function(x) {
xc <- constructive::construct(x)
xc <- tryCatch(
constructive::construct(x, check = TRUE),
error = function(e) {
print(e)
constructive::construct(x, check = FALSE)
}
)
parse_expr(format(xc$code))
}

Expand Down

0 comments on commit 96d43db

Please sign in to comment.