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

Debugging param parsing #34

Merged
merged 3 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: pacta.workflow.utils
Title: Utility functions for PACTA workflows
Version: 0.0.0.9013
Version: 0.0.0.9014
Authors@R:
c(person(given = "Alex",
family = "Axthelm",
Expand Down
8 changes: 6 additions & 2 deletions R/parse_raw_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ parse_raw_params <- function(
raw_schema_file = NULL
) {
# Read Params
log_trace("Processing input parameters.")
log_debug("Processing input parameters.")
log_trace(
logger::skip_formatter(paste("Input parameters:", json, collapse = " "))
)
if (length(json) == 0L || all(json == "")) {
log_error("No parameters specified.")
stop("No parameters specified.")
Expand All @@ -131,9 +134,10 @@ parse_raw_params <- function(
log_error(
"Invalid raw input parameters. ",
"Must include \"inherit\" key, or match full schema.",
"See schema for details.",
"See schema for details. ",
raw_schema_file
)
pretty_log_jsonvalidate_errors(raw_input_validation_results)
stop("Invalid raw input parameters.")
}
}
Expand Down
Loading