Skip to content

Commit

Permalink
type_checking: simplify error message for object validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker authored and jpakkane committed Nov 13, 2023
1 parent 7e1aed0 commit f8e8713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/interpreter/type_checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def _objects_validator(vals: T.List[ObjectTypes]) -> T.Optional[str]:
non_objects.extend(o for o in val.get_outputs() if not compilers.is_object(o))

if non_objects:
return f'File{"s" if len(non_objects) > 1 else ""}: "{", ".join(non_objects)}" are not objects'
return f'{", ".join(non_objects)!r} are not objects'

return None

Expand Down

0 comments on commit f8e8713

Please sign in to comment.