aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2019-10-17 09:05:38 -0700
committerNirbheek Chauhan <nirbheek@centricular.com>2019-11-07 17:22:40 +0530
commitcbac9152a014d89f55153087b9a43f77240d6e62 (patch)
tree6ca1ebe75078ae993ef1517b43209d0da0954de6
parent5827d955795b1728b299c5c1f05b9816a3d4abe6 (diff)
downloadmeson-cbac9152a014d89f55153087b9a43f77240d6e62.zip
meson-cbac9152a014d89f55153087b9a43f77240d6e62.tar.gz
meson-cbac9152a014d89f55153087b9a43f77240d6e62.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