Add missing error message

This commit is contained in:
Richard Berger 2020-06-04 16:26:22 -04:00
parent e5263e502d
commit 57821c7bea
No known key found for this signature in database
GPG Key ID: A9E83994E0BA0CAB
1 changed files with 3 additions and 0 deletions

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