restore additional info about the potential cause of find_program failing

Before commit f08eed37cb we also mentioned
that it might not be executable.
This commit is contained in:
Eli Schwartz 2021-11-28 12:35:25 -05:00
parent 71ae5ccb65
commit d25a335503
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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"
} }
] ]
} }