From 2eb730f3ac3fd1b14646671a12495d741cddba4d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 25 Apr 2022 12:08:56 -0400 Subject: devenv: Catch FileNotFoundError Fixes: #10310 --- mesonbuild/mdevenv.py | 2 ++ 1 file changed, 2 insertions(+) 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]}') -- cgit v1.1