Add missing error message

This commit is contained in:
Richard Berger
2020-06-04 16:26:22 -04:00
parent e5263e502d
commit 57821c7bea

View File

@ -42,6 +42,9 @@ PotentialFileReader::PotentialFileReader(LAMMPS *lmp,
try {
reader = open_potential(filename);
if(!reader) {
error->one(FLERR, fmt::format("cannot open {} potential file {}", potential_name, filename).c_str());
}
} catch (FileReaderException & e) {
error->one(FLERR, e.what());
}