Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
More informative error message
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Mar 2010 10:09:39 +0000 (10:09 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Mar 2010 10:09:39 +0000 (10:09 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7292 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/msg_mailbox.c

index c897b6a..c0e97dc 100644 (file)
@@ -148,7 +148,7 @@ MSG_mailbox_get_task_ext(msg_mailbox_t mailbox, m_task_t *task, m_host_t host,
         ret = MSG_TIMEOUT_FAILURE;
         break;      
       default:
         ret = MSG_TIMEOUT_FAILURE;
         break;      
       default:
-        xbt_die("Unhandled SIMIX network exception");
+        xbt_die(bprintf("Unhandled SIMIX network exception: %s",e.msg));
     }
     xbt_ex_free(e);        
   }
     }
     xbt_ex_free(e);        
   }
@@ -202,7 +202,7 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task,
         ret = MSG_TIMEOUT_FAILURE;
         break;
       default:
         ret = MSG_TIMEOUT_FAILURE;
         break;
       default:
-        xbt_die("Unhandled SIMIX network exception");
+        xbt_die(bprintf("Unhandled SIMIX network exception: %s",e.msg));
     }
     xbt_ex_free(e);
 
     }
     xbt_ex_free(e);