aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-02-19 03:53:21 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-02-19 03:53:21 +0530
commitf23a4a8b27b2a2e46185869bb736b1ab843cdcf3 (patch)
tree221449a59c7bc7b50d8fe3860be94cc4e9d9f188 /mesonbuild/interpreter.py
parent2478bb144d69037250cd8d2e6e0a827a8582671f (diff)
downloadmeson-f23a4a8b27b2a2e46185869bb736b1ab843cdcf3.zip
meson-f23a4a8b27b2a2e46185869bb736b1ab843cdcf3.tar.gz
meson-f23a4a8b27b2a2e46185869bb736b1ab843cdcf3.tar.bz2
run_command: Fix error message on incorrect argument
Be more descriptive so people know what they can do.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index d6cc921..f6065d5 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -1421,7 +1421,8 @@ class Interpreter(InterpreterBase):
elif isinstance(cmd, str):
cmd = [cmd]
else:
- raise InterpreterException('First argument is of incorrect type.')
+ raise InterpreterException('First argument should be find_program() '
+ 'or string, not {!r}'.format(cmd))
expanded_args = []
for a in mesonlib.flatten(cargs):
if isinstance(a, str):