From 2f691410fc4a6c35ff69efa3644610e37dccda2a Mon Sep 17 00:00:00 2001 From: Jehan Date: Sat, 1 Jul 2017 22:07:36 +0200 Subject: Improve "Passed invalid keyword argument" warning. I got this warning on a build: > WARNING: Passed invalid keyword argument preset. This will become a hard error in the future. I had to grep in meson code to understand that "preset" was the name of the invalid argument. This is not obvious at all depending on the argument name (here it looked like it was about argument presets). Let's make it clearer by putting it in quotes. --- mesonbuild/modules/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/modules/__init__.py') diff --git a/mesonbuild/modules/__init__.py b/mesonbuild/modules/__init__.py index 9d7552593..8b5b21052 100644 --- a/mesonbuild/modules/__init__.py +++ b/mesonbuild/modules/__init__.py @@ -15,7 +15,7 @@ class permittedSnippetKwargs: def wrapped(s, interpreter, state, args, kwargs): for k in kwargs: if k not in self.permitted: - mlog.warning('Passed invalid keyword argument %s. This will become a hard error in the future.' % k) + mlog.warning('Passed invalid keyword argument "%s". This will become a hard error in the future.' % k) return f(s, interpreter, state, args, kwargs) return wrapped -- cgit v1.2.3