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>
pull/6977/head
Ariel D'Alessandro 5 years ago committed by Jussi Pakkanen
parent a6239d5100
commit b1b3987d9c
  1. 2
      mesonbuild/interpreter.py

@ -2581,7 +2581,7 @@ external dependencies (including libraries) must go to "dependencies".''')
' and therefore cannot be used during configuration' ' and therefore cannot be used during configuration'
raise InterpreterException(msg.format(progname, cmd.description())) raise InterpreterException(msg.format(progname, cmd.description()))
if not cmd.found(): 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): elif isinstance(cmd, CompilerHolder):
exelist = cmd.compiler.get_exelist() exelist = cmd.compiler.get_exelist()
cmd = exelist[0] cmd = exelist[0]

Loading…
Cancel
Save