aboutsummaryrefslogtreecommitdiff
path: root/meson.py
diff options
context:
space:
mode:
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)