From: Martin Quinson Date: Sat, 7 May 2016 21:00:16 +0000 (+0200) Subject: improve an error message X-Git-Tag: v3_14~1260 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a1cc46cd2ecc3a43cc3c41b6a8e14111da0237ba?hp=e49a7949060118737703106058657735cf3892d6;ds=sidebyside improve an error message --- 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)