From de746a537cd455c094792011d63ee309fc8d8711 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 30 May 2005 15:33:40 +0000 Subject: [PATCH] Made an error message more explicit (hopefully) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1299 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/gras/Msg/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gras/Msg/msg.c b/src/gras/Msg/msg.c index 777fcd0e97..c0a5e03721 100644 --- a/src/gras/Msg/msg.c +++ b/src/gras/Msg/msg.c @@ -249,7 +249,7 @@ gras_msg_recv(gras_socket_t sock, TRY(gras_trp_chunk_recv(sock, header, 6)); for (cpt=0; cpt<4; cpt++) if (header[cpt] != GRAS_header[cpt]) - RAISE0(mismatch_error,"Incoming bytes do not look like a GRAS message"); + RAISE2(mismatch_error,"Incoming bytes do not look like a GRAS message (header='%.4s' not '%.4s')",header,GRAS_header); if (header[4] != GRAS_header[4]) RAISE2(mismatch_error,"GRAS protocol mismatch (got %d, use %d)", (int)header[4], (int)GRAS_header[4]); -- 2.20.1