aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-02-12 14:17:50 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2020-04-30 20:11:34 +0100
commitb647ce1b63961a76a6de63a3586015a4c5d56b44 (patch)
tree75d5efa8ad92428293693221e0040e214b3ae13b /mesonbuild/interpreter.py
parent10817381131ba58b243e13d76f97be59d65a5a8a (diff)
downloadmeson-b647ce1b63961a76a6de63a3586015a4c5d56b44.zip
meson-b647ce1b63961a76a6de63a3586015a4c5d56b44.tar.gz
meson-b647ce1b63961a76a6de63a3586015a4c5d56b44.tar.bz2
Cosmetic tweak to error message for incdir() with an absolute path
Cosmetic tweak to the error message for incdir() with an absolute path. Don't split the message in the middle of a sentence at a point which may or may not correspond to the terminal width.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 9811b0a..0dfb616 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -4220,8 +4220,9 @@ This will become a hard error in the future.''' % kwargs['input'], location=self
for a in incdir_strings:
if a.startswith(src_root):
- raise InvalidArguments('''Tried to form an absolute path to a source dir. You should not do that but use
-relative paths instead.
+ raise InvalidArguments('Tried to form an absolute path to a source dir. '
+ 'You should not do that but use relative paths instead.'
+ '''
To get include path to any directory relative to the current dir do