From aae577d056f554889ea9c9961b3a10d4837cfae6 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Tue, 6 Nov 2018 15:04:08 +0000
Subject: [PATCH] Improved error message for MPI tasks that have an incorrect
 task.

---
 src/task.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/task.c b/src/task.c
index 6580bf4a6b..13ce88452c 100644
--- a/src/task.c
+++ b/src/task.c
@@ -412,8 +412,8 @@ int task_lock(struct task *t) {
         char buff[MPI_MAX_ERROR_STRING];
         int len;
         MPI_Error_string(err, buff, &len);
-        error("Failed to test request on send/recv task (tag=%lld, %s).",
-              t->flags, buff);
+        error("Failed to test request on send/recv task (type=%s/%s tag=%lld, %s).",
+              taskID_names[t->type], subtaskID_names[t->subtype], t->flags, buff);
       }
       return res;
 #else
-- 
GitLab