diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2020-10-28 23:31:22 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-11-01 19:27:09 +0200 |
commit | 505b5b23915ec98624e81eabeb59ac17ea18ff47 (patch) | |
tree | 6a9948d126047bc75cbca9783ce41e95f0172cd2 | |
parent | 47d071a34f1e1539b1b354cfda309dac1b905232 (diff) | |
download | meson-505b5b23915ec98624e81eabeb59ac17ea18ff47.zip meson-505b5b23915ec98624e81eabeb59ac17ea18ff47.tar.gz meson-505b5b23915ec98624e81eabeb59ac17ea18ff47.tar.bz2 |
gnome: Tweak error message
It's an easy mistake to do this:
gir1 = gnome.generate_gir(...)
gir2 = gnome.generate_gir(...
includes: ['GObject-2.0', gir1])
This fails with an error:
ERROR: Gir includes must be str, GirTarget, or list of them.
The issue is that the 'gir1[0]' should be passed instead of 'gir1'.
To make the problem slightly clearly, tweak the error message to be:
ERROR: Gir includes must be str, GirTarget, or list of them. Got TypelibTarget.
-rw-r--r-- | mesonbuild/modules/gnome.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 907a609..2d32328 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -487,7 +487,8 @@ class GnomeModule(ExtensionModule): depends += [inc] else: raise MesonException( - 'Gir includes must be str, GirTarget, or list of them') + 'Gir includes must be str, GirTarget, or list of them. ' + 'Got %s.' % type(inc).__name__) return ret |