From a1cc46cd2ecc3a43cc3c41b6a8e14111da0237ba Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 7 May 2016 23:00:16 +0200 Subject: [PATCH 1/1] improve an error message --- src/simix/smx_network.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/simix/smx_network.cpp b/src/simix/smx_network.cpp index fa759cb61c..850480fb4f 100644 --- a/src/simix/smx_network.cpp +++ b/src/simix/smx_network.cpp @@ -203,8 +203,7 @@ void SIMIX_comm_destroy(smx_synchro_t synchro) if (comm->refcount <= 0) { xbt_backtrace_display_current(); - xbt_die("The refcount of comm %p is already 0 before decreasing it. " - "That's a bug! If you didn't test and/or wait the same communication twice in your code, then the bug is SimGrid's...", synchro); + xbt_die("This comm has a negative refcount! You must not call test() or wait() more than once on a given communication."); } comm->refcount--; if (comm->refcount > 0) -- 2.20.1