From 94d285301a4029fe551a42f93f662cfae1c44600 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 6 Mar 2017 12:15:52 +0100 Subject: [PATCH] Improve error log when you have trouble to load a topology --- gns3server/controller/topology.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/topology.py b/gns3server/controller/topology.py index 726ef519..7213afb7 100644 --- a/gns3server/controller/topology.py +++ b/gns3server/controller/topology.py @@ -138,7 +138,11 @@ def load_topology(path): if topo["revision"] < 7: topo = _convert_2_0_0_beta_2(topo, path) - _check_topology_schema(topo) + try: + _check_topology_schema(topo) + except aiohttp.web.HTTPConflict as e: + log.error("Can't load the topology %s", path) + raise e if changed: with open(path, "w+", encoding="utf-8") as f: