Skip to content

Commit

Permalink
change error to warning if diagram file is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
landmaj committed May 7, 2024
1 parent 6b7ca82 commit 2dcedd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion d2/img.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def run(self, root: etree.Element) -> etree.Element | None:
if src.suffix == ".d2":
diagram = Path(self.base_dir, src).resolve()
if not diagram.exists():
error(f"File not found: {diagram}")
warning(f"File not found: {diagram}")
continue
with diagram.open("rb") as f:
source = f.read()
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mkdocs-material
mkdocs-d2-plugin==1.3.0
mkdocs-d2-plugin==1.3.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="mkdocs-d2-plugin",
version="1.3.0",
version="1.3.1",
description="MkDocs plugin for D2",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 2dcedd3

Please sign in to comment.