Dev/print filepath in error (#251)
Some checks failed
Build on RHEL8 / build (push) Failing after 0s
Build on RHEL9 / build (push) Successful in 3m15s

This commit is contained in:
2025-11-25 11:25:44 +01:00
committed by GitHub
parent 8201c5e999
commit dd5ed138cf

View File

@@ -101,7 +101,8 @@ int64_t ScanParameters::settleTime() const { return m_settleTime; }
RawMasterFile::RawMasterFile(const std::filesystem::path &fpath)
: m_fnc(fpath) {
if (!std::filesystem::exists(fpath)) {
throw std::runtime_error(LOCATION + " File does not exist");
throw std::runtime_error(fmt::format("{} File does not exist: {}",
LOCATION, fpath.string()));
}
if (m_fnc.ext() == ".json") {
parse_json(fpath);