diff options
author | M Henning <drawoc@darkrefraction.com> | 2023-08-08 00:54:30 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-08-18 00:41:56 -0400 |
commit | 22f90fd469a2742a2bb2d4f79e4a585a525ea934 (patch) | |
tree | 0094a435bdd856ffdde880b013dcb5cab294a702 /mesonbuild | |
parent | 268276f7acc55a79fbd31a7d510af93d43ac2d8f (diff) | |
download | meson-22f90fd469a2742a2bb2d4f79e4a585a525ea934.zip meson-22f90fd469a2742a2bb2d4f79e4a585a525ea934.tar.gz meson-22f90fd469a2742a2bb2d4f79e4a585a525ea934.tar.bz2 |
Suggest fix in MesonVersionMismatchException
Every time I update meson, I spend about 20 minutes on frustrated googling
to figure out how to update my build directory to work with the new version.
I'm forgetful, okay? Ease this pain point by suggesting a potential fix in
the error message.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/coredata.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index 7bbc09e..bb84f72 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -91,7 +91,8 @@ class MesonVersionMismatchException(MesonException): '''Build directory generated with Meson version is incompatible with current version''' def __init__(self, old_version: str, current_version: str) -> None: super().__init__(f'Build directory has been generated with Meson version {old_version}, ' - f'which is incompatible with the current version {current_version}.') + f'which is incompatible with the current version {current_version}. ' + f'Consider reconfiguring the directory with meson setup --reconfigure.') self.old_version = old_version self.current_version = current_version |