From 764f4f5a919871f157c5b1678854e97aa8e919c7 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 26 Jan 2015 00:26:52 +0100 Subject: [PATCH] more informative (?) error message --- src/surf/surf_routing_cluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/surf_routing_cluster.cpp b/src/surf/surf_routing_cluster.cpp index 25cf788bdd..02c11ba7b1 100644 --- a/src/surf/surf_routing_cluster.cpp +++ b/src/surf/surf_routing_cluster.cpp @@ -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(); -- 2.20.1