Include name of missing OPM restart file in error.

Otherwise it is hard to tell for the (newbie?) user what went wrong.
This commit is contained in:
Markus Blatt
2023-09-14 09:33:43 +02:00
parent b55270defe
commit 81c9594f5d

View File

@@ -241,7 +241,7 @@ public:
path.replace_filename(ioconfig.getBaseName() + ".OPMRST");
loadFile_ = path;
if (!std::filesystem::exists(loadFile_)) {
OPM_THROW(std::runtime_error, "Error locating serialized restart file");
OPM_THROW(std::runtime_error, "Error locating serialized restart file " + loadFile_);
}
}
}