fixed warning messages

This commit is contained in:
Surferlul 2023-10-13 18:21:25 +02:00
parent f79a3ea05a
commit ec274c94d9

View File

@ -13,10 +13,10 @@ def iter_svgs(vault_path, draws):
for draw in draws: for draw in draws:
svg = Path("assets/excalidraw_svg").joinpath(Path(draw).with_suffix(".svg").name) svg = Path("assets/excalidraw_svg").joinpath(Path(draw).with_suffix(".svg").name)
if vault_path.joinpath(svg).is_file(): if vault_path.joinpath(svg).is_file():
print("::debug [found]", svg) print("::debug::[found]", svg)
yield draw, svg yield draw, svg
else: else:
eprint("::warning [missing]:", svg) eprint("::error::[missing]", svg)
yield draw, None yield draw, None