1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-24 15:58:08 +00:00

Improve error log when you have trouble to load a topology

This commit is contained in:
Julien Duponchelle 2017-03-06 12:15:52 +01:00
parent 5e7f97b175
commit 94d285301a
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -138,7 +138,11 @@ def load_topology(path):
if topo["revision"] < 7:
topo = _convert_2_0_0_beta_2(topo, path)
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: