type_checking: simplify error message for object validation

pull/12509/head
Dylan Baker 1 year ago committed by Jussi Pakkanen
parent 7e1aed0abc
commit f8e87134a4
  1. 2
      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

Loading…
Cancel
Save