Skip to content

Commit

Permalink
Fix error handling
Browse files Browse the repository at this point in the history
Signed-off-by: Milosz Wasilewski <[email protected]>
  • Loading branch information
mwasilew committed Jan 24, 2025
1 parent fd508b7 commit e97e4f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schemacheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
exitcode += 1
except yaml.parser.ParserError as e2:
print(f"{filename} is invalid")
print(e2.msg)
print(e2.problem)
print(e2.note)
exitcode += 1
print(f"{filename} is valid")
sys.exit(exitcode)
Expand Down

0 comments on commit e97e4f7

Please sign in to comment.