From 8b35886c2c7695faac7788e4fd781dd3f4992fa3 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 16 Feb 2016 08:44:42 +0100 Subject: [PATCH] [mod] add error message for usability --- prosopopee/prosopopee.py | 1 + 1 file changed, 1 insertion(+) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index ccb1b82..4450917 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -151,6 +151,7 @@ def main(): error(gallery_settings.get("title"), "You should specify a title in %s" % (os.path.join(gallery, "settings.yaml"))) if gallery_settings.get("public", True): + error(gallery_settings.get("title"), "Your galery describe in %s need to have a title" % (os.path.join(gallery, "settings.yaml"))) error(gallery_settings.get("cover"), "You should specify a path to a cover picture in %s" % (os.path.join(gallery, "settings.yaml"))) cover_image_path = os.path.join(gallery, gallery_settings["cover"]) error(os.path.exists(cover_image_path), "File for %s cover image doesn't exists at %s" % (gallery, cover_image_path))