diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-12-30 18:53:26 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2017-12-30 20:10:15 +0000 |
commit | ad5cc2ce5523d38578e9ca19179687434d050f3d (patch) | |
tree | 9fb44aa76cdd66e1c81f0afa7ac422e4a91b9675 /mesonbuild/interpreter.py | |
parent | dd1de073f4c9e643090b1cfdcbfb6b25bbd9dc49 (diff) | |
download | meson-ad5cc2ce5523d38578e9ca19179687434d050f3d.zip meson-ad5cc2ce5523d38578e9ca19179687434d050f3d.tar.gz meson-ad5cc2ce5523d38578e9ca19179687434d050f3d.tar.bz2 |
Append warning location to warning output by warning()
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index e5238a7..e8fb081 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1935,7 +1935,7 @@ to directly access options of other subprojects.''') @noKwargs def func_warning(self, node, args, kwargs): argstr = self.get_message_string_arg(node) - mlog.warning(argstr) + mlog.warning('%s in file %s, line %d' % (argstr, os.path.join(node.subdir, 'meson.build'), node.lineno)) @noKwargs def func_error(self, node, args, kwargs): |