aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mdevenv.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-04-25 12:08:56 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2022-04-30 11:47:25 +0300
commit2eb730f3ac3fd1b14646671a12495d741cddba4d (patch)
treecfb0277aec4e397e05d5bd723d08cbb74ed37848 /mesonbuild/mdevenv.py
parent157d43883515507f42618b065a64fb26501734a0 (diff)
downloadmeson-2eb730f3ac3fd1b14646671a12495d741cddba4d.zip
meson-2eb730f3ac3fd1b14646671a12495d741cddba4d.tar.gz
meson-2eb730f3ac3fd1b14646671a12495d741cddba4d.tar.bz2
devenv: Catch FileNotFoundError
Fixes: #10310
Diffstat (limited to 'mesonbuild/mdevenv.py')
-rw-r--r--mesonbuild/mdevenv.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/mdevenv.py b/mesonbuild/mdevenv.py
index 6268c1d..8ea50d5 100644
--- a/mesonbuild/mdevenv.py
+++ b/mesonbuild/mdevenv.py
@@ -165,3 +165,5 @@ def run(options: argparse.Namespace) -> int:
cwd=options.wd)
except subprocess.CalledProcessError as e:
return e.returncode
+ except FileNotFoundError:
+ raise MesonException(f'Command not found: {args[0]}')