Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make an error message informative
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 11 Dec 2012 10:50:15 +0000 (11:50 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 11 Dec 2012 10:51:13 +0000 (11:51 +0100)
src/msg/msg_task.c

index b280a7c..013c4f1 100644 (file)
@@ -298,7 +298,7 @@ msg_error_t MSG_task_destroy(msg_task_t task)
  */
 msg_error_t MSG_task_cancel(msg_task_t task)
 {
  */
 msg_error_t MSG_task_cancel(msg_task_t task)
 {
-  xbt_assert((task != NULL), "Invalid parameter");
+  xbt_assert((task != NULL), "Cannot cancel a NULL task");
 
   if (task->simdata->compute) {
     simcall_host_execution_cancel(task->simdata->compute);
 
   if (task->simdata->compute) {
     simcall_host_execution_cancel(task->simdata->compute);