mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-20 11:18:41 +01:00
Dev/print filepath in error (#251)
This commit is contained in:
@@ -101,7 +101,8 @@ int64_t ScanParameters::settleTime() const { return m_settleTime; }
|
|||||||
RawMasterFile::RawMasterFile(const std::filesystem::path &fpath)
|
RawMasterFile::RawMasterFile(const std::filesystem::path &fpath)
|
||||||
: m_fnc(fpath) {
|
: m_fnc(fpath) {
|
||||||
if (!std::filesystem::exists(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") {
|
if (m_fnc.ext() == ".json") {
|
||||||
parse_json(fpath);
|
parse_json(fpath);
|
||||||
|
|||||||
Reference in New Issue
Block a user