diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index bb1507c03e68..1faa128bde5e 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -803,7 +803,7 @@ def generate_gir(self, state, args, kwargs): mlog.deprecation('Passing --warn-error is deprecated in favor of "fatal_warnings" keyword argument since v0.55') fatal_warnings = kwargs.get('fatal_warnings', False) if not isinstance(fatal_warnings, bool): - raise MesonException('fatal_warnings keyword argument must be string.') + raise MesonException('fatal_warnings keyword argument must be a boolean') if fatal_warnings: scan_command.append('--warn-error')