[mod] clearer error message

This commit is contained in:
Laurent Peuch 2016-04-18 19:45:10 +02:00
parent d81fec847e
commit 2eb8fecfd5

View File

@ -97,8 +97,9 @@ def main():
error(isinstance(settings, dict), "Your settings.yaml should be a dict")
error(settings.get("title"), "You should specify a title in your main settings.yaml")
if settings.get("rss") or settings.get("share"):
error(settings.get("url"), "If you want the rss and the social network share work, you should specify url in main settings")
error(settings.get("url"), "If you want the rss and/or the social network share work, you should specify url in main settings")
if settings.get("settings", {}).get("gm"):
SETTINGS["gm"].update(settings["settings"]["gm"])