From a0aca4cee41d657e55b72804f2476fa9226ec486 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 19 Aug 2020 15:08:04 -0400 Subject: [PATCH] improve error message --- src/modify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modify.cpp b/src/modify.cpp index 2d5dc4db8b..96335946ae 100644 --- a/src/modify.cpp +++ b/src/modify.cpp @@ -1193,7 +1193,7 @@ void Modify::add_compute(int narg, char **arg, int trysuffix) for (int icompute = 0; icompute < ncompute; icompute++) if (strcmp(arg[0],compute[icompute]->id) == 0) - error->all(FLERR,"Reuse of compute ID"); + error->all(FLERR,fmt::format("Reuse of compute ID '{}'",arg[0])); // extend Compute list if necessary