aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorMatthias Klumpp <matthias@tenstral.net>2018-01-18 03:22:41 +0100
committerMatthias Klumpp <matthias@tenstral.net>2018-02-12 19:12:44 +0100
commitf35606f61ea19d1d71b670b34ed8dc108b492d7f (patch)
treeb022b9f5e2b3ca184a67a0d49438febd146dfe76 /mesonbuild
parente0ec5491a0e2fbb996f03242b065ac0b66dee907 (diff)
downloadmeson-f35606f61ea19d1d71b670b34ed8dc108b492d7f.zip
meson-f35606f61ea19d1d71b670b34ed8dc108b492d7f.tar.gz
meson-f35606f61ea19d1d71b670b34ed8dc108b492d7f.tar.bz2
Show a better error message if subproject can not be configured
Previously, Meson was showing a subproject being downloaded after later claiming it doesn't exist. This patch shows the actual error to clarify why the given subproject can not be used.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 31d7616..0dfe57d 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -2339,10 +2339,10 @@ root and issuing %s.
raise
# If the subproject execution failed in a non-fatal way, don't raise an
# exception; let the caller handle things.
- except:
+ except Exception as e:
mlog.log('Also couldn\'t find a fallback subproject in',
mlog.bold(os.path.join(self.subproject_dir, dirname)),
- 'for the dependency', mlog.bold(name))
+ 'for the dependency', mlog.bold(name), '\nReason:', str(e))
return None
dep = self.get_subproject_dep(name, dirname, varname, kwargs.get('required', True))
if not dep: