Skip to content

Commit f8e8713

Browse files
dcbakerjpakkane
authored andcommitted
type_checking: simplify error message for object validation
1 parent 7e1aed0 commit f8e8713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/interpreter/type_checking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def _objects_validator(vals: T.List[ObjectTypes]) -> T.Optional[str]:
560560
non_objects.extend(o for o in val.get_outputs() if not compilers.is_object(o))
561561

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

565565
return None
566566

0 commit comments

Comments
 (0)