diff options
| author | Jehan <jehan@girinstud.io> | 2017-07-01 22:07:36 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-02 10:08:08 -0400 |
| commit | 2f691410fc4a6c35ff69efa3644610e37dccda2a (patch) | |
| tree | 7af18b524d69f572be250914391fd33ce941a920 /mesonbuild/modules | |
| parent | d80787ae28af58dcce3cbdb086b80677c5c00389 (diff) | |
| download | meson-2f691410fc4a6c35ff69efa3644610e37dccda2a.tar.gz | |
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.
Diffstat (limited to 'mesonbuild/modules')
| -rw-r--r-- | mesonbuild/modules/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
