From b281b4c105597d9833789a9eba0817f2ffb27d13 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 19 Oct 2024 20:06:39 -0500 Subject: [PATCH] fix --- repertory/repertory/main.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/repertory/repertory/main.cpp b/repertory/repertory/main.cpp index 422c43a4..d39931eb 100644 --- a/repertory/repertory/main.cpp +++ b/repertory/repertory/main.cpp @@ -109,14 +109,15 @@ auto main(int argc, char **argv) -> int { if (res == exit_code::success) { unique_id = utils::string::trim(data); if (unique_id.empty()) { - std::cerr << "Name of " << app_config::get_provider_name(prov) - << " instance not provided" << std::endl; - res = exit_code::invalid_syntax; + if (prov == provider_type::sia) { + unique_id = "default"; + } else { + std::cerr << "Name of " + << app_config::get_provider_display_name(prov) + << " instance not provided" << std::endl; + res = exit_code::invalid_syntax; + } } - } else if (res == exit_code::option_not_found && - prov == provider_type::sia) { - unique_id = "default"; - res = exit_code::success; } if (res == exit_code::success) {