diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-11-08 03:26:05 -0500 |
---|---|---|
committer | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-11-17 00:17:02 -0500 |
commit | dc8e8f06441030fc1d7f16a8444964ea5a125321 (patch) | |
tree | 43d5b074d4ec89e78c26c025a874a26261aae2a9 /mesonbuild/modules/fs.py | |
parent | 4adfd921ae9138dcbc1787e049529d1a923b6a97 (diff) | |
download | meson-dc8e8f06441030fc1d7f16a8444964ea5a125321.zip meson-dc8e8f06441030fc1d7f16a8444964ea5a125321.tar.gz meson-dc8e8f06441030fc1d7f16a8444964ea5a125321.tar.bz2 |
fs: improve exception feedback
Diffstat (limited to 'mesonbuild/modules/fs.py')
-rw-r--r-- | mesonbuild/modules/fs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/fs.py b/mesonbuild/modules/fs.py index ffb8e86..a9881c4 100644 --- a/mesonbuild/modules/fs.py +++ b/mesonbuild/modules/fs.py @@ -31,7 +31,7 @@ class FSModule(ExtensionModule): def _check(self, check: str, state: 'ModuleState', args: typing.Sequence[str]) -> ModuleReturnValue: if len(args) != 1: - MesonException('method takes exactly one argument.') + MesonException('fs.{} takes exactly one argument.'.format(check)) test_file = Path(state.source_root) / state.subdir / Path(args[0]).expanduser() return ModuleReturnValue(getattr(test_file, check)(), []) |