updated build system
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2024-10-19 11:10:36 -05:00
parent c72dec6369
commit 2fb53e34af
24 changed files with 1330 additions and 831 deletions

View File

@ -92,7 +92,11 @@ template <typename val_t>
}
if (fmt_val.empty()) {
throw std::runtime_error("hex string is invalid|" + std::string{str});
throw utils::error::create_exception({
function_name,
"hex string is invalid",
str,
});
}
if (fmt_val.length() % 2U) {
@ -107,9 +111,13 @@ template <typename val_t>
});
if (iter != fmt_val.end()) {
auto invalid_idx{std::distance(fmt_val.begin(), iter)};
throw std::range_error(
"invalid character in hex string|" + std::to_string(invalid_idx) +
'|' + std::string(1U, str.at(invalid_idx)) + '|' + std::string{str});
throw std::range_error(utils::error::create_error_message({
function_name,
"invalid character in hex string",
std::to_string(invalid_idx),
std::string(1U, str.at(invalid_idx)),
str,
}));
}
val.resize(fmt_val.length() / 2U);