Skip to content

Commit c028491

Browse files
committed
[property.py] Print Validation Errors
1 parent 01504d3 commit c028491

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

odml/property.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ def __init__(self, name=None, values=None, parent=None, unit=None,
129129

130130
self.parent = parent
131131

132-
validation.Validation(self)
132+
for err in validation.Validation(self).errors:
133+
if err.rank == "error":
134+
print("ERROR", err.obj, err.msg)
133135

134136
def __len__(self):
135137
return len(self._values)

0 commit comments

Comments
 (0)