diff options
author | Benjamin Frye <fryeb@users.noreply.github.com> | 2020-04-29 14:28:20 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 21:28:20 -0700 |
commit | ad426547e8f8a3c20d6479af86cd2b1de8dbaa15 (patch) | |
tree | 16e15f4f8d4b763554e640c0abc98dfeb9852a75 | |
parent | 707d3a2e20611466fcb6a8af7a977e5c3c989c25 (diff) | |
download | meson-ad426547e8f8a3c20d6479af86cd2b1de8dbaa15.zip meson-ad426547e8f8a3c20d6479af86cd2b1de8dbaa15.tar.gz meson-ad426547e8f8a3c20d6479af86cd2b1de8dbaa15.tar.bz2 |
Clarified error message for test(). (#7040)
Changes the error message for test() so it now reports the expected and actual number of parameters.
Fixes: #7029
-rw-r--r-- | mesonbuild/interpreter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 6575868..dd1e57b 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -3790,7 +3790,7 @@ This will become a hard error in the future.''' % kwargs['input'], location=self def add_test(self, node, args, kwargs, is_base_test): if len(args) != 2: - raise InterpreterException('Incorrect number of arguments') + raise InterpreterException('test expects 2 arguments, {} given'.format(len(args))) if not isinstance(args[0], str): raise InterpreterException('First argument of test must be a string.') exe = args[1] |