diff --git a/mesonbuild/interpreter/type_checking.py b/mesonbuild/interpreter/type_checking.py index 3b6542025477..5212a85ba754 100644 --- a/mesonbuild/interpreter/type_checking.py +++ b/mesonbuild/interpreter/type_checking.py @@ -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