Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more informative (?) error message
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 25 Jan 2015 23:26:52 +0000 (00:26 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 25 Jan 2015 23:26:52 +0000 (00:26 +0100)
src/surf/surf_routing_cluster.cpp

index 25cf788..02c11ba 100644 (file)
@@ -90,7 +90,7 @@ void AsCluster::getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges)
   xbt_node_t current, previous, backboneNode = NULL, routerNode;
   s_surf_parsing_link_up_down_t info;
 
-  xbt_assert(p_router,"Malformed cluster");
+  xbt_assert(p_router,"Malformed cluster. This may be because your platform file is a hypergraph while it must be a graph.");
 
   /* create the router */
   char *link_name = p_router->getName();