diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-05-03 11:36:00 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-05-05 08:11:04 +1000 |
commit | 44131226761913bba297a0cf5d20d37d9408d02e (patch) | |
tree | 2b08fc8938c09f857601a614e7be2ed89c0519dd | |
parent | 4378655a39be1d693a73432f344b74600c4d8651 (diff) | |
download | meson-44131226761913bba297a0cf5d20d37d9408d02e.zip meson-44131226761913bba297a0cf5d20d37d9408d02e.tar.gz meson-44131226761913bba297a0cf5d20d37d9408d02e.tar.bz2 |
Check for input and output to exist in vcs_tag
Provide a proper error message, rather than the current
"Command cannot have '@INPUT0@', since no input files were specified"
which doesn't actually tell us where things are going wrong.
-rw-r--r-- | mesonbuild/interpreter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index d8f3b2b..fed3e10 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -2022,6 +2022,8 @@ class Interpreter(InterpreterBase): raise InterpreterException('Unknown target_type.') def func_vcs_tag(self, node, args, kwargs): + if 'input' not in kwargs or 'output' not in kwargs: + raise InterpreterException('Keyword arguments input and output must exist') fallback = kwargs.pop('fallback', None) if not isinstance(fallback, str): raise InterpreterException('Keyword argument fallback must exist and be a string.') |