Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate the error causing rextendr::document() to fail #409

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions R/register_extendr.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@
),
error = function(e) {
cli::cli_abort(
c("Failed to generate wrapper functions.", x = e[["message"]]),
c("Failed to generate wrapper functions.",
x = e[["message"]],
y = e[["parent"]][["message"]]
),

Check warning on line 106 in R/register_extendr.R

View check run for this annotation

Codecov / codecov/patch

R/register_extendr.R#L103-L106

Added lines #L103 - L106 were not covered by tests
class = "rextendr_error"
)
}
Expand All @@ -118,7 +121,7 @@
#' @param package_name The name of the package.
#' @param outfile Determines where to write wrapper code.
#' @param path Path from which package root is looked up. Used for message formatting.
#' @param use_symbols Logical, indicating wether to add additonal symbol information to
#' @param use_symbols Logical, indicating wether to add additional symbol information to
#' the generated wrappers. Default (`FALSE`) is used when making wrappers for the package,
#' while `TRUE` is used to make wrappers for dynamically generated libraries using
#' [`rust_source`], [`rust_function`], etc.
Expand Down
Loading