Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pdl/pdl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def parse_str(pdl_str: str, file_name: str = "") -> tuple[Program, LocationType]
defs = schema["$defs"]
errors = analyze_errors(defs, defs["Program"], prog_yaml, loc)
if errors == []:
errors = ["The file do not respect the schema."]
errors = [f"The file PDL {file_name} does not respect the schema."]
raise PDLParseError(errors) from exc
return prog, loc

Expand Down