From 5b34e560e54af215184040369b0b2807e7569ac3 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 25 Sep 2016 09:02:41 -0700 Subject: [PATCH] gnome: Print useful error if missing compile_resource arg (#811) --- mesonbuild/modules/gnome.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index d6a0fcf8e..d8c8f10de 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)