Skip to content

Commit

Permalink
prefer log_error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoffa committed Feb 20, 2024
1 parent 6766ed2 commit 6f5c60d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.R
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ geco_2022 <- dplyr::mutate(
)

if (any(is.na(unique(geco_2022$scenario)))) {
stop("Unique scenario names are not well-defined. Please review!")
logger::log_error("`NA` scenario names are not well-defined. Please review!")
}

geco_2022 <- dplyr::select(
Expand All @@ -712,5 +712,5 @@ if (pacta.data.validation::validate_intermediate_scenario_output(geco_2022)) {
fs::path(scenario_preparation_outputs_path, "geco_2022.csv")
)
} else {
rlang::abort("GECO 2022 data is not valid.")
logger::log_error("GECO 2022 data is not valid.")
}

0 comments on commit 6f5c60d

Please sign in to comment.