correct format string for Error::one()

This commit is contained in:
Axel Kohlmeyer
2021-12-29 16:18:48 -05:00
parent 88b42503f9
commit 27a6c63aeb

View File

@ -196,7 +196,7 @@ void Error::one(const std::string &file, int line, const std::string &str)
MPI_Comm_rank(world,&me);
if (input && input->line) lastcmd = input->line;
std::string mesg = fmt::format("ERROR on proc {}: {} ({}:{})\n",
std::string mesg = fmt::format("ERROR on proc {}: {} ({}:{})\nLast command: {}\n",
me,str,truncpath(file),line,lastcmd);
utils::logmesg(lmp,mesg);