aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2016-09-25 09:02:41 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2016-09-25 19:02:41 +0300
commit5b34e560e54af215184040369b0b2807e7569ac3 (patch)
treeba580b71182853e4b6f2b752674f79eb738196c1 /mesonbuild/modules/gnome.py
parent3aebdb717a489bd7f8f441ffdfb65dcb71ab3853 (diff)
downloadmeson-5b34e560e54af215184040369b0b2807e7569ac3.zip
meson-5b34e560e54af215184040369b0b2807e7569ac3.tar.gz
meson-5b34e560e54af215184040369b0b2807e7569ac3.tar.bz2
gnome: Print useful error if missing compile_resource arg (#811)
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index d6a0fcf..d8c8f10 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -45,6 +45,9 @@ class GnomeModule:
if not isinstance(source_dirs, list):
source_dirs = [source_dirs]
+ if len(args) < 2:
+ raise MesonException('Not enough arguments; The name of the resource and the path to the XML file are required')
+
ifile = args[1]
if isinstance(ifile, mesonlib.File):
ifile = os.path.join(ifile.subdir, ifile.fname)