From 27a6c63aeb33f9a054cc924bc8b0aaf9bc709e09 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 29 Dec 2021 16:18:48 -0500 Subject: [PATCH] correct format string for Error::one() --- src/error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.cpp b/src/error.cpp index 5338f41cca..e2162cf661 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -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);