[mod] better error message
This commit is contained in:
parent
f54483b58c
commit
5399f9e8e0
@ -182,7 +182,7 @@ def main():
|
||||
for item in settings.get("menu", []):
|
||||
for link in item:
|
||||
item_file = link
|
||||
error(os.path.exists(os.path.join(os.getcwd(), item_file + ".yaml")), "I can't find a " + item_file + ".yaml in the current working directory")
|
||||
error(os.path.exists(os.path.join(os.getcwd(), item_file + ".yaml")), "I can't find a " + item_file + ".yaml in the current working directory as specified by your menu description in your root settings.yaml")
|
||||
open(os.path.join("build", item_file + ".html"), "w").write(page_template.render(settings=settings, pages=yaml.safe_load(open(item_file + ".yaml", "r")), galleries=front_page_galleries_cover).encode("Utf-8"))
|
||||
|
||||
Image.base_dir = os.getcwd()
|
||||
|
Loading…
x
Reference in New Issue
Block a user