Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
improve an error message
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 14 Jul 2018 20:46:36 +0000 (22:46 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 14 Jul 2018 21:43:21 +0000 (23:43 +0200)
src/surf/sg_platf.cpp

index a5ce276..f192754 100644 (file)
@@ -431,7 +431,7 @@ void sg_platf_new_actor(simgrid::kernel::routing::ActorCreationArgs* actor)
     xbt_die("%s", msg.c_str());
   }
   simgrid::simix::ActorCodeFactory& factory = SIMIX_get_actor_code_factory(actor->function);
-  xbt_assert(factory, "Function '%s' unknown", actor->function);
+  xbt_assert(factory, "Error while creating an actor from the XML file: Function '%s' not registered", actor->function);
 
   double start_time = actor->start_time;
   double kill_time  = actor->kill_time;