forked from lijiext/lammps
Add missing error message
This commit is contained in:
parent
e5263e502d
commit
57821c7bea
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue