Skip to content

Commit 50225ff

Browse files
committed
Add logging.
1 parent 17a2135 commit 50225ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/py/kaleido/_page_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ def _ensure_path(path: Path | str | tuple[str | Path, str]) -> None:
2626
return
2727
elif (
2828
parsed.scheme.startswith("file")
29-
and not Path(url2pathname(parsed.path)).exists()
29+
and not (_p := Path(url2pathname(parsed.path))).exists()
3030
):
31+
_logger.error(f"File parsed to: {_p}")
3132
raise FileNotFoundError(f"{path!s} does not exist.")
3233
if not Path(path).exists():
3334
raise FileNotFoundError(f"{path!s} does not exist.")

0 commit comments

Comments
 (0)