diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-05-12 14:41:30 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-05-12 14:41:30 -0600 |
commit | ecbb8e9c0a4374b26defde2cd10932d633affed3 (patch) | |
tree | 8d19dc4e1c19a78e184e358880948eb8be0dbc88 /src/libutil/error.cc | |
parent | 960d4362ed2215f87a596e0a994e39aa28680db1 (diff) |
no blank line if no LOC
Diffstat (limited to 'src/libutil/error.cc')
-rw-r--r-- | src/libutil/error.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/error.cc b/src/libutil/error.cc index e4f45a2d3..0765a2945 100644 --- a/src/libutil/error.cc +++ b/src/libutil/error.cc @@ -182,7 +182,7 @@ std::ostream& operator<<(std::ostream &out, const ErrorInfo &einfo) } // lines of code. - if (einfo.nixCode.has_value()) { + if (einfo.nixCode.has_value() && einfo.nixCode->errLineOfCode.has_value()) { printCodeLines(out, prefix, *einfo.nixCode); out << prefix << std::endl; } |