diff --git a/src/error.cpp b/src/error.cpp index f8c1eaefd8..35e0ab49e0 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -163,7 +163,7 @@ void Error::one(const std::string &file, int line, int failed, const std::string std::string mesg = fmt::format("ERROR on proc {}: {} ({}:{})\n", me, str, truncpath(file), line); if (failed > NOPOINTER) mesg += utils::point_to_error(input, failed); - if (failed > ARGZERO) mesg += utils::point_to_error(input, 0); + if (failed == ARGZERO) mesg += utils::point_to_error(input, 0); utils::logmesg(lmp,mesg); if (universe->nworlds > 1)