Problem Description
When documenting a package and a module fails to be documented because of a missing/broken import, pdoc exits with 0.
IMHO pdoc should exit != 0, although partial documentation is generated.
Steps to reproduce the behavior:
Setup
pdoc_poc/
├── __init__.py
├── pdoc_fail.py
└── pdoc_success.py
__init__.py (empty)
pdoc_fail.py
"""This aint gonna work..."""
import non_existant_module
pdoc_success.py
"""
Thanks for developing pdoc... its really cool!
"""
- call
pdoc pdoc_poc -o poc_html
- check error code
echo $LASTEXITCODE -> 0
System Information
pdoc: 12.0.1
Python: 3.8.10
Platform: Windows-10-10.0.19042-SP0
Problem Description
When documenting a package and a module fails to be documented because of a missing/broken import, pdoc exits with
0.IMHO pdoc should exit
!= 0, although partial documentation is generated.Steps to reproduce the behavior:
Setup
__init__.py(empty)pdoc_fail.pypdoc_success.pypdoc pdoc_poc -o poc_htmlecho $LASTEXITCODE-> 0System Information
pdoc: 12.0.1
Python: 3.8.10
Platform: Windows-10-10.0.19042-SP0