diff options
| author | TingPing <tingping@tingping.se> | 2016-09-25 09:02:41 -0700 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-09-25 19:02:41 +0300 |
| commit | 5b34e560e54af215184040369b0b2807e7569ac3 (patch) | |
| tree | ba580b71182853e4b6f2b752674f79eb738196c1 | |
| parent | 3aebdb717a489bd7f8f441ffdfb65dcb71ab3853 (diff) | |
| download | meson-5b34e560e54af215184040369b0b2807e7569ac3.tar.gz | |
gnome: Print useful error if missing compile_resource arg (#811)
| -rw-r--r-- | mesonbuild/modules/gnome.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |
