diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:23:44 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:23:44 +0100 |
commit | 2ddf453e0db41a872dc3103ce94c30a4f624631d (patch) | |
tree | f9861b7af89de63830f5c1ecac6ac40d094ddf2d /src/libutil | |
parent | 7614aa97975f3e6e36b6ffbd9fec34462021ab39 (diff) |
Merge pull request #9619 from 9999years/remove-blank-lines-in-errors
Remove some blank lines from stack traces
(cherry picked from commit cea83544362bd6426e9bc0b7dd0d611c19b0e3fd)
Change-Id: Ic1af8b09e9994d3c69fd3b37ae47a4bb786a15a1
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/error.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libutil/error.cc b/src/libutil/error.cc index dd9612471..55c0a4846 100644 --- a/src/libutil/error.cc +++ b/src/libutil/error.cc @@ -172,10 +172,9 @@ static bool printUnknownLocations = getEnv("_NIX_DEVELOPER_SHOW_UNKNOWN_LOCATION static bool printPosMaybe(std::ostream & oss, std::string_view indent, const std::shared_ptr<AbstractPos> & pos) { bool hasPos = pos && *pos; if (hasPos) { - oss << "\n" << indent << ANSI_BLUE << "at " ANSI_WARNING << *pos << ANSI_NORMAL << ":"; + oss << indent << ANSI_BLUE << "at " ANSI_WARNING << *pos << ANSI_NORMAL << ":"; if (auto loc = pos->getCodeLines()) { - oss << "\n"; printCodeLines(oss, "", *pos, *loc); oss << "\n"; } |