updated build system
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...

This commit is contained in:
Scott E. Graves 2024-08-02 22:41:42 -05:00
parent d659a5e04d
commit df24b99303

View File

@ -42,15 +42,17 @@ static const std::wstring directory_seperator_str_w{
#if defined(HAS_WORDEXP_H) #if defined(HAS_WORDEXP_H)
try { try {
wordexp_t wt{}; if (not path.empty()) {
int ret{}; wordexp_t wt{};
if ((ret = wordexp(path.c_str(), &wt, 0)) != 0) { int ret{};
throw std::runtime_error("'wordexp()' failed|" + std::to_string(ret) + if ((ret = wordexp(path.c_str(), &wt, 0)) != 0) {
'|' + path); throw std::runtime_error("'wordexp()' failed|" + std::to_string(ret) +
} '|' + path);
}
path = wt.we_wordv[0U]; path = wt.we_wordv[0U];
wordfree(&wt); wordfree(&wt);
}
} catch (const std::exception &e) { } catch (const std::exception &e) {
repertory::utils::error::handle_exception(function_name, e); repertory::utils::error::handle_exception(function_name, e);
} catch (...) { } catch (...) {