aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authortaz-007 <taz.007@zoho.com>2019-11-30 14:24:40 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-30 21:55:51 +0200
commiteed05c9045ae2f5a326bfd418006fa7fd76b7748 (patch)
tree4de0dbfd105b8e64e5f340552830f738f7eac741 /mesonbuild/build.py
parent2362bdbbf90fd9f44563f8e45891252164db7bde (diff)
downloadmeson-eed05c9045ae2f5a326bfd418006fa7fd76b7748.zip
meson-eed05c9045ae2f5a326bfd418006fa7fd76b7748.tar.gz
meson-eed05c9045ae2f5a326bfd418006fa7fd76b7748.tar.bz2
improve error message when old version detected
Be more explicit about the --wipe command requiring to be executed from the source dir.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 4201e35..35bc450 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -2477,7 +2477,8 @@ def load(build_dir: str) -> Build:
raise MesonException(
"Build data file {!r} references functions or classes that don't "
"exist. This probably means that it was generated with an old "
- "version of meson. Try running meson {} --wipe".format(filename, build_dir))
+ "version of meson. Try running from the source directory "
+ "meson {} --wipe".format(filename, build_dir))
if not isinstance(obj, Build):
raise MesonException(load_fail_msg)
return obj