Commit 7cc36da3 authored by Douglas Serson's avatar Douglas Serson

Fix error message for missing fld files

parent c976e139
......@@ -127,6 +127,7 @@ const std::string FieldIO::GetFileType(const std::string &filename,
0x89, 0x48, 0x44, 0x46, 0x0d, 0x0a, 0x1a, 0x0a};
std::ifstream datafile(datafilename.c_str(), ios_base::binary);
ASSERTL0(datafile.good(), "Unable to open file: " + filename);
ioType = eHDF5;
for (unsigned i = 0; i < 8 && datafile.good(); ++i)
......
Markdown is supported
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