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

@ -263,14 +263,14 @@ void PythonImpl::command(int narg, char **arg)
if (!pFunc) {
PyUtils::Print_Errors();
error->all(FLERR,fmt::format("Could not find Python function {}",
pfuncs[ifunc].name));
error->all(FLERR,"Could not find Python function {}",
pfuncs[ifunc].name);
}
if (!PyCallable_Check(pFunc)) {
PyUtils::Print_Errors();
error->all(FLERR,fmt::format("Python function {} is not callable",
pfuncs[ifunc].name));
error->all(FLERR,"Python function {} is not callable",
pfuncs[ifunc].name);
}
pfuncs[ifunc].pFunc = (void *) pFunc;