From 6f3abb56f13b8fb7c77c7f56dfb20059f1f4e353 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 10 May 2010 14:53:25 +0000 Subject: [PATCH] Improve error message since this can also be caused by the fact that there is no such registered agent (actions are not often used yet) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7731 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/msg/msg_actions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/msg/msg_actions.c b/src/msg/msg_actions.c index b7ca3756a6..05476ffc8e 100644 --- a/src/msg/msg_actions.c +++ b/src/msg/msg_actions.c @@ -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; -- 2.20.1