diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-11 14:38:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-11 14:38:00 +0200 |
commit | a60da308bfcc003fd07d2b7d848ccb8d166e472a (patch) | |
tree | 0616ec5db6a3f6dec5d90194c0adca63ad4e8cdb /build2/diagnostics.cxx | |
parent | 5417243b54862d0e5f0214dde2b84eb90a100bf2 (diff) |
Redo config inheritance logic
Diffstat (limited to 'build2/diagnostics.cxx')
-rw-r--r-- | build2/diagnostics.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build2/diagnostics.cxx b/build2/diagnostics.cxx index d6278a8..7b60d05 100644 --- a/build2/diagnostics.cxx +++ b/build2/diagnostics.cxx @@ -106,7 +106,15 @@ namespace build2 { stream_verb (r.os_, sverb_); - r << *loc_.file << ':' << loc_.line << ':' << loc_.column << ": "; + r << *loc_.file << ':'; + + if (loc_.line != 0) + r << loc_.line << ':'; + + if (loc_.column != 0) + r << loc_.column << ':'; + + r << ' '; if (type_ != nullptr) r << type_ << ": "; |