diff options
author | Ariel D'Alessandro <ariel@vanguardiasur.com.ar> | 2020-04-13 16:55:54 -0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-04-14 23:20:39 +0300 |
commit | b1b3987d9cc9302175829afa242046c734bc6d68 (patch) | |
tree | 09558babdd410a274663ed5f2053e001f2a9472d | |
parent | a6239d5100eff74e9358bbd51029bd2810d19f54 (diff) | |
download | meson-b1b3987d9cc9302175829afa242046c734bc6d68.zip meson-b1b3987d9cc9302175829afa242046c734bc6d68.tar.gz meson-b1b3987d9cc9302175829afa242046c734bc6d68.tar.bz2 |
interpreter: Show program's name on run_command error message
Currently, the error message is printing the object itself. Showing the
program's name is better.
Signed-off-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar>
-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 1f9e4d4..b2ca49f 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -2581,7 +2581,7 @@ external dependencies (including libraries) must go to "dependencies".''') ' and therefore cannot be used during configuration' raise InterpreterException(msg.format(progname, cmd.description())) if not cmd.found(): - raise InterpreterException('command {!r} not found or not executable'.format(cmd)) + raise InterpreterException('command {!r} not found or not executable'.format(cmd.get_name())) elif isinstance(cmd, CompilerHolder): exelist = cmd.compiler.get_exelist() cmd = exelist[0] |