diff --git a/src/error.cpp b/src/error.cpp index 9811a1d3eb..4095ab3313 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -195,7 +195,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);