From 6f5c60d0a0591dc8fcd9797d0f22f2873bdfe6b2 Mon Sep 17 00:00:00 2001 From: Jackson Hoffart Date: Tue, 20 Feb 2024 14:37:24 +0100 Subject: [PATCH] prefer log_error --- main.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.R b/main.R index 77509f1..d1ecbde 100644 --- a/main.R +++ b/main.R @@ -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( @@ -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.") }