Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Improve error message since this can also be caused by the fact that there is no...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 10 May 2010 14:53:25 +0000 (14:53 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 10 May 2010 14:53:25 +0000 (14:53 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7731 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/msg_actions.c

index b7ca375..05476ff 100644 (file)
@@ -58,9 +58,9 @@ static int MSG_action_runner(int argc, char *argv[]) {
       xbt_dynar_free(&evt);
     }
   } else { // Should have got my trace file in argument
-    xbt_assert0(argc>=2,
-          "No simulation-wide trace file provided to MSG_action_trace_run(), "
-          "and no process-wide trace file provided in deployment file. Aborting."
+    xbt_assert1(argc>=2,
+          "No '%s' agent function provided, no simulation-wide trace file provided to MSG_action_trace_run(), "
+          "and no process-wide trace file provided in deployment file. Aborting.",argv[0]
     );
 
     char *line = NULL;