aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2019-10-17 09:05:38 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2019-10-18 00:48:00 +0300
commitb626978dc628cd9992ee2b7dbd83b566fde3b586 (patch)
tree76f9cd84e97cb1687db0de1652817314aee5ec18
parent8b8f14c4ddb0241e96e05dfa728c597c12d3fd3b (diff)
downloadmeson-b626978dc628cd9992ee2b7dbd83b566fde3b586.zip
meson-b626978dc628cd9992ee2b7dbd83b566fde3b586.tar.gz
meson-b626978dc628cd9992ee2b7dbd83b566fde3b586.tar.bz2
Add missing newlines to "meson introspect" error
The lack of newlines in the print() statement for this error causes the result to be jumbled and hard to read: $ ./meson.py introspect Current directory is not a meson build directory.Please specify a valid build dir or change the working directory to it.It is also possible that the build directory was generated with an oldmeson version. Please regenerate it in this case. Add newlines so the message is more readable: $ ./meson.py introspect Current directory is not a meson build directory. Please specify a valid build dir or change the working directory to it. It is also possible that the build directory was generated with an old meson version. Please regenerate it in this case.
-rw-r--r--mesonbuild/mintro.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py
index 49eef0a..5e05574 100644
--- a/mesonbuild/mintro.py
+++ b/mesonbuild/mintro.py
@@ -398,9 +398,9 @@ def run(options):
infofile = get_meson_info_file(infodir)
if not os.path.isdir(datadir) or not os.path.isdir(infodir) or not os.path.isfile(infofile):
- print('Current directory is not a meson build directory.'
- 'Please specify a valid build dir or change the working directory to it.'
- 'It is also possible that the build directory was generated with an old'
+ print('Current directory is not a meson build directory.\n'
+ 'Please specify a valid build dir or change the working directory to it.\n'
+ 'It is also possible that the build directory was generated with an old\n'
'meson version. Please regenerate it in this case.')
return 1