summaryrefslogtreecommitdiff
path: root/mesonbuild/coredata.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>2016-02-15 11:11:36 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-02-17 15:03:54 +0530
commita901024d333e439a3f0d2faa8cebb0eb881fd00e (patch)
tree3c61fdd14399e89166140bb9fe38d3b17b212565 /mesonbuild/coredata.py
parentedd61dcf816bba751acf44583a1b4162bb37ea8f (diff)
downloadmeson-a901024d333e439a3f0d2faa8cebb0eb881fd00e.tar.gz
When erroring out due to invalid prefix, print the value
Helps with debugging what's going wrong
Diffstat (limited to 'mesonbuild/coredata.py')
-rw-r--r--mesonbuild/coredata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py
index 72e3414ae..813d4ad70 100644
--- a/mesonbuild/coredata.py
+++ b/mesonbuild/coredata.py
@@ -62,7 +62,7 @@ class UserStringOption(UserOption):
if not isinstance(value, str):
raise MesonException('Value "%s" for string option "%s" is not a string.' % (str(newvalue), self.name))
if self.name == 'prefix' and not os.path.isabs(value):
- raise MesonException('Prefix option must be an absolute path.')
+ raise MesonException('Prefix option value \'{0}\' must be an absolute path.'.format(value))
if self.name in ('libdir', 'bindir', 'includedir', 'datadir', 'mandir', 'localedir') \
and os.path.isabs(value):
raise MesonException('Option %s must not be an absolute path.' % self.name)