diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-19 10:53:17 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-05-19 07:18:43 -0400 |
commit | 087e7943d0e4210b3edb40e075189e4e40ba5f52 (patch) | |
tree | d6e0bbdad49ab778b191535cf41d82367b765a00 /mesonbuild/interpreterbase | |
parent | 153e81a81623b2abad12eff1043c0d5b474f5c15 (diff) | |
download | meson-087e7943d0e4210b3edb40e075189e4e40ba5f52.zip meson-087e7943d0e4210b3edb40e075189e4e40ba5f52.tar.gz meson-087e7943d0e4210b3edb40e075189e4e40ba5f52.tar.bz2 |
Reword misleading warning
"tried to use" implies that the attempt was not successful, i.e. that meson
ignored the feature. But that is not what happens, apart from the warning the
feature works just fine. The new message is also shorter ;)
Diffstat (limited to 'mesonbuild/interpreterbase')
-rw-r--r-- | mesonbuild/interpreterbase/decorators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreterbase/decorators.py b/mesonbuild/interpreterbase/decorators.py index e678fd9..120c579 100644 --- a/mesonbuild/interpreterbase/decorators.py +++ b/mesonbuild/interpreterbase/decorators.py @@ -696,7 +696,7 @@ class FeatureNew(FeatureCheckBase): def log_usage_warning(self, tv: str, location: T.Optional['mparser.BaseNode']) -> None: args = [ 'Project targeting', f"'{tv}'", - 'but tried to use feature introduced in', + 'but uses feature introduced in', f"'{self.feature_version}':", f'{self.feature_name}.', ] @@ -729,7 +729,7 @@ class FeatureDeprecated(FeatureCheckBase): def log_usage_warning(self, tv: str, location: T.Optional['mparser.BaseNode']) -> None: args = [ 'Project targeting', f"'{tv}'", - 'but tried to use feature deprecated since', + 'but uses feature deprecated since', f"'{self.feature_version}':", f'{self.feature_name}.', ] |