Use varargs version of Error:all() and Error::one() where applicable

This commit is contained in:
Axel Kohlmeyer
2021-04-25 21:30:51 -04:00
parent 4cbe6200d6
commit e9e0bb71b6
117 changed files with 522 additions and 524 deletions

View File

@ -1107,9 +1107,9 @@ FILE *utils::open_potential(const std::string &name, LAMMPS *lmp,
if (auto_convert == nullptr) {
if (!units.empty() && (units != unit_style) && (me == 0)) {
error->one(FLERR, fmt::format("Potential file {} requires {} units "
error->one(FLERR, "Potential file {} requires {} units "
"but {} units are in use", name, units,
unit_style));
unit_style);
return nullptr;
}
} else {
@ -1123,9 +1123,9 @@ FILE *utils::open_potential(const std::string &name, LAMMPS *lmp,
&& (*auto_convert & REAL2METAL)) {
*auto_convert = REAL2METAL;
} else {
error->one(FLERR, fmt::format("Potential file {} requires {} units "
error->one(FLERR, "Potential file {} requires {} units "
"but {} units are in use", name,
units, unit_style));
units, unit_style);
return nullptr;
}
}