Skip to content

Commit

Permalink
Update validate_format.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sgbaird committed Apr 5, 2024
1 parent 71f2c44 commit 911e41c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions validate_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ class ValidationError(Exception):
"""Exception raised for errors in the validation process."""

def __init__(self, file_path, errors):
message = (
f"Multiple validation errors occurred in {file_path}:\n==============\n"
+ "\n".join(errors)
)
message = f"In {file_path}:\n==============\n" + "\n".join(errors)
super().__init__(message)


Expand Down

0 comments on commit 911e41c

Please sign in to comment.