diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-09-02 21:06:01 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-09-03 08:02:02 -0400 |
commit | 4745037f4b4575395e5487c5c2b23dbf6c225286 (patch) | |
tree | e92bef2e7022ad7316f95926ddc55366d72f50aa | |
parent | 5e55a0bb2b95546da41fd27dbccc8c056815f391 (diff) | |
download | meson-4745037f4b4575395e5487c5c2b23dbf6c225286.zip meson-4745037f4b4575395e5487c5c2b23dbf6c225286.tar.gz meson-4745037f4b4575395e5487c5c2b23dbf6c225286.tar.bz2 |
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
-rw-r--r-- | mesonbuild/wrap/wrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 6c145ab..334590c 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] |