gnome: Print useful error if missing compile_resource arg (#811)

pull/809/head
TingPing 8 years ago committed by Jussi Pakkanen
parent 3aebdb717a
commit 5b34e560e5
  1. 3
      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)

Loading…
Cancel
Save