Skip to content

Commit

Permalink
Fail if a transformer fails
Browse files Browse the repository at this point in the history
  • Loading branch information
javfg committed Nov 19, 2024
1 parent b0d4e2b commit b7c1d42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ontoform"
version = "24.0.0-alpha.2"
version = "24.1.0-alpha.2"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
Expand Down
4 changes: 3 additions & 1 deletion src/ontoform/model.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from collections.abc import Callable
from concurrent.futures import ProcessPoolExecutor, as_completed
from io import IOBase
Expand Down Expand Up @@ -109,4 +110,5 @@ def execute(
try:
future.result()
except Exception as e:
logger.error(f'Failed to execute transformation for {transform.src_path}: {e}')
logger.critical(f'Failed to execute transformation for {transform.src_path}: {e}')
sys.exit(1)

0 comments on commit b7c1d42

Please sign in to comment.