Skip to content

Commit 10d896f

Browse files
authored
Merge pull request #4 from genematx/raise-errors
Raise error when validating structure
2 parents 4c652e4 + 87dd3b8 commit 10d896f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

data_validation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def validate(root_client, fix_errors=True, try_reading=True, raise_on_error=Fals
8686
msg = title + f" failed with error: {msg}"
8787
logger.warning(msg)
8888
notes.append(msg)
89+
if raise_on_error:
90+
raise e
8991

9092
# Validate reading of the data
9193
if try_reading:

0 commit comments

Comments
 (0)