diff --git a/web/build-versions b/web/build-versions index e1da7876..c114cd70 100644 --- a/web/build-versions +++ b/web/build-versions @@ -5,6 +5,7 @@ import shutil import subprocess import tarfile import tempfile +import traceback from pathlib import Path from typing import Dict, List, Optional, Union @@ -29,6 +30,7 @@ def _run(argv: List[str], cwd: Optional[Union[str, Path]] = None, print(p.stderr) raise Exception(f'Command {" ".join(argv)} failed') else: + print(p.stdout) return p.stdout @@ -98,7 +100,11 @@ def run() -> None: print('.', end='') out = Path('docs').absolute() / '.web-build' / 'v' / label out.mkdir(parents=True, exist_ok=True) - build(dst, pd, out) + try: + build(dst, pd, out) + except Exception as ex: + traceback.print_exc() + print(f'Failed to build docs for {label}') print()