Merge pull request #4870 from blattms/print-missing-restart-file

Include name of missing OPM restart file in error.
This commit is contained in:
Atgeirr Flø Rasmussen 2023-09-15 15:29:50 +02:00 committed by GitHub
commit a59920cee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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_);
}
}
}