From 2c0fb0d01685215dd5b1efca6f8f75b9cf8b304a Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 14 Mar 2017 18:00:16 +0100 Subject: [PATCH] Raise error if image are not avaible on main server during export Fix https://github.com/GNS3/gns3-gui/issues/1928 --- gns3server/controller/export_project.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/controller/export_project.py b/gns3server/controller/export_project.py index 1cc93a12..6f3f6556 100644 --- a/gns3server/controller/export_project.py +++ b/gns3server/controller/export_project.py @@ -191,3 +191,5 @@ def _export_images(project, image, z): arcname = os.path.join("images", directory, os.path.basename(image)) z.write(path, arcname) break + else: + raise aiohttp.web.HTTPConflict(text="Topology could not be exported because the image {} is not available. If you use multiple server, we need a copy of the image on the main server.".format(path))