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.
pull/1722/head
Peter Hutterer 8 years ago
parent 4378655a39
commit 4413122676
  1. 2
      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.')

Loading…
Cancel
Save