From 4745037f4b4575395e5487c5c2b23dbf6c225286 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 2 Sep 2021 21:06:01 -0400 Subject: [PATCH] log a more informative error when wrap-git subprojects cannot be downloaded "ERROR: Git program not found" is both highly true, and somewhat inscrutable. Sure, looking at the line number you can basically figure out that subproject('something') must somehow need git to operate, but that may not be immediately obvious. Make mention of the fact that it is needed to "download foo.wrap". Fixes #7764 --- mesonbuild/wrap/wrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 6c145ab6a..334590cc5 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -402,7 +402,7 @@ class Resolver: def get_git(self) -> None: if not GIT: - raise WrapException('Git program not found.') + raise WrapException(f'Git program not found, cannot download {self.packagename}.wrap via git.') revno = self.wrap.get('revision') is_shallow = False depth_option = [] # type: T.List[str]