restore additional info about the potential cause of find_program failing

Before commit f08eed37cb we also mentioned
that it might not be executable.
pull/9735/head
Eli Schwartz 3 years ago
parent 71ae5ccb65
commit d25a335503
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/interpreter/interpreter.py
  2. 2
      test cases/failing/101 no glib-compile-resources/test.json

@ -1448,7 +1448,7 @@ external dependencies (including libraries) must go to "dependencies".''')
if not silent: if not silent:
mlog.log('Program', mlog.bold(progobj.get_name()), 'found:', mlog.red('NO')) mlog.log('Program', mlog.bold(progobj.get_name()), 'found:', mlog.red('NO'))
if required: if required:
m = 'Program {!r} not found' m = 'Program {!r} not found or not executable'
raise InterpreterException(m.format(progobj.get_name())) raise InterpreterException(m.format(progobj.get_name()))
return progobj return progobj

@ -1,7 +1,7 @@
{ {
"stdout": [ "stdout": [
{ {
"line": "test cases/failing/101 no glib-compile-resources/meson.build:8:0: ERROR: Program 'glib-compile-resources' not found" "line": "test cases/failing/101 no glib-compile-resources/meson.build:8:0: ERROR: Program 'glib-compile-resources' not found or not executable"
} }
] ]
} }

Loading…
Cancel
Save