Skip to content

Commit 7fc7a75

Browse files
authored
Improve error message (#599)
Partially address Issue #243
1 parent 5f743e5 commit 7fc7a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pdl/pdl_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def parse_str(pdl_str: str, file_name: str = "") -> tuple[Program, LocationType]
3333
defs = schema["$defs"]
3434
errors = analyze_errors(defs, defs["Program"], prog_yaml, loc)
3535
if errors == []:
36-
errors = ["The file do not respect the schema."]
36+
errors = [f"The file PDL {file_name} does not respect the schema."]
3737
raise PDLParseError(errors) from exc
3838
return prog, loc
3939

0 commit comments

Comments
 (0)