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

@ -231,8 +231,8 @@ void WriteRestart::write(std::string file)
fp = fopen(base.c_str(),"wb");
if (fp == nullptr)
error->one(FLERR, fmt::format("Cannot open restart file {}: {}",
base, utils::getsyserror()));
error->one(FLERR, "Cannot open restart file {}: {}",
base, utils::getsyserror());
}
// proc 0 writes magic string, endian flag, numeric version
@ -294,8 +294,8 @@ void WriteRestart::write(std::string file)
if (filewriter) {
fp = fopen(multiname.c_str(),"wb");
if (fp == nullptr)
error->one(FLERR, fmt::format("Cannot open restart file {}: {}",
multiname, utils::getsyserror()));
error->one(FLERR, "Cannot open restart file {}: {}",
multiname, utils::getsyserror());
write_int(PROCSPERFILE,nclusterprocs);
}
}