Commit cd2fc1d8 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Catch more exceptions on reading data

parent 47f6be1e
......@@ -880,6 +880,8 @@ void LoadNexusLogs::loadNXLog(::NeXus::File &file, const std::string &absolute_e
}
} catch (::NeXus::Exception &e) {
g_log.warning() << "NXlog entry " << entry_name << " gave an error when loading:'" << e.what() << "'.\n";
} catch (std::invalid_argument &e) {
g_log.warning() << "NXlog entry " << entry_name << " gave an error when loading:'" << e.what() << "'.\n";
}
file.closeGroup();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment