aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-11-13 12:28:13 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2023-11-14 00:36:51 +0200
commitf8e87134a4e851b760d0032b9a850cdcb654bad1 (patch)
treea57c851ea0674fabe0cd60046320280e6aaf123a
parent7e1aed0abcf41c62f2ae0a02372f3ba9afff15fc (diff)
downloadmeson-f8e87134a4e851b760d0032b9a850cdcb654bad1.zip
meson-f8e87134a4e851b760d0032b9a850cdcb654bad1.tar.gz
meson-f8e87134a4e851b760d0032b9a850cdcb654bad1.tar.bz2
type_checking: simplify error message for object validation
-rw-r--r--mesonbuild/interpreter/type_checking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/type_checking.py b/mesonbuild/interpreter/type_checking.py
index 3b65420..5212a85 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