aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-04-22 22:08:33 -0400
committerXavier Claessens <xclaesse@gmail.com>2023-05-16 11:19:43 -0400
commit0b5e95ae71492663e2207db816bf38e8f56d9c7e (patch)
treed67772290cfcec633e09f188bf29e2c6287b5735 /mesonbuild
parent40e27b14f1db25f36b48e21821a17143dbb3a066 (diff)
downloadmeson-0b5e95ae71492663e2207db816bf38e8f56d9c7e.zip
meson-0b5e95ae71492663e2207db816bf38e8f56d9c7e.tar.gz
meson-0b5e95ae71492663e2207db816bf38e8f56d9c7e.tar.bz2
meson_exe: print suitable debug information for DLL not found errors
It's particularly inscrutable if you do not know where DLLs weren't found because you don't know what the PATH was in the child process.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/scripts/meson_exe.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/scripts/meson_exe.py b/mesonbuild/scripts/meson_exe.py
index 33408d8..da89dd4 100644
--- a/mesonbuild/scripts/meson_exe.py
+++ b/mesonbuild/scripts/meson_exe.py
@@ -72,7 +72,8 @@ def run_exe(exe: ExecutableSerialisation, extra_env: T.Optional[T.Dict[str, str]
if p.returncode == 0xc0000135:
# STATUS_DLL_NOT_FOUND on Windows indicating a common problem that is otherwise hard to diagnose
- raise FileNotFoundError('due to missing DLLs')
+ strerror = 'Failed to run due to missing DLLs, with path: ' + child_env['PATH']
+ raise FileNotFoundError(p.returncode, strerror, cmd_args)
if p.returncode != 0:
if exe.pickled: