aboutsummaryrefslogtreecommitdiff
path: root/meson.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-03-16 22:26:22 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2014-03-16 22:26:22 +0200
commit5658127392c422f4760675fd23844402ea81d975 (patch)
tree228fb3af3533987cd7a25df2f2f9d23eabf609af /meson.py
parent889e4b03c02dc01f194c9affa230591dce83e0da (diff)
downloadmeson-5658127392c422f4760675fd23844402ea81d975.zip
meson-5658127392c422f4760675fd23844402ea81d975.tar.gz
meson-5658127392c422f4760675fd23844402ea81d975.tar.bz2
Here we go, starting parser transplant.
Diffstat (limited to 'meson.py')
-rwxr-xr-xmeson.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.py b/meson.py
index 4b08a44..a140814 100755
--- a/meson.py
+++ b/meson.py
@@ -169,8 +169,8 @@ if __name__ == '__main__':
app.generate()
except Exception as e:
if isinstance(e, MesonException):
- if hasattr(e, 'file') and hasattr(e, 'lineno'):
- mlog.log(mlog.red('\nMeson encountered an error in %s:%d:' % (e.file, e.lineno)))
+ if hasattr(e, 'file') and hasattr(e, 'lineno') and hasattr(e, 'colno'):
+ mlog.log(mlog.red('\nMeson encountered an error in %s:%d,%d:' % (e.file, e.lineno, e.colno)))
else:
mlog.log(mlog.red('\nMeson encountered an error:'))
mlog.log(e)