Skip to content

Commit 8180ab2

Browse files
committed
fix: display errors when schema validation fails
1 parent 1386c70 commit 8180ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/molecule/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ def _validate(self) -> None:
751751

752752
errors = schema_v3.validate(self.config)
753753
if errors:
754-
msg = f"Failed to validate {self.molecule_file}\n\n{errors}"
754+
msg = f"Failed to validate {self.molecule_file}\n\n{'\n'.join(errors)}"
755755
sysexit_with_message(msg, code=1)
756756

757757

0 commit comments

Comments
 (0)