mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user