aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/error.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-04-28 21:06:08 -0600
committerBen Burdette <bburdette@gmail.com>2020-04-28 21:06:08 -0600
commit22e6490311015e076a09d5608834bd0dec1d7020 (patch)
tree5aff3f1fcadac73e929c9dd13599c92dc000b487 /src/libutil/error.cc
parente51a757720ade58e48128730134400cf12f54851 (diff)
Error classname as name
Diffstat (limited to 'src/libutil/error.cc')
-rw-r--r--src/libutil/error.cc29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/libutil/error.cc b/src/libutil/error.cc
index 2c34325ac..8f0e0aa1a 100644
--- a/src/libutil/error.cc
+++ b/src/libutil/error.cc
@@ -4,8 +4,7 @@
#include <optional>
#include "serialise.hh"
-namespace nix
-{
+namespace nix {
const std::string nativeSystem = SYSTEM;
@@ -149,20 +148,20 @@ std::ostream& operator<<(std::ostream &out, const ErrorInfo &einfo)
// divider.
if (einfo.name != "")
- out << fmt("%1%%2%" ANSI_BLUE " --- %3% %4% %5%" ANSI_NORMAL,
- prefix,
- levelString,
- einfo.name,
- dashes,
- einfo.programName.value_or(""))
- << std::endl;
+ out << fmt("%1%%2%" ANSI_BLUE " --- %3% %4% %5%" ANSI_NORMAL,
+ prefix,
+ levelString,
+ einfo.name,
+ dashes,
+ einfo.programName.value_or(""))
+ << std::endl;
else
- out << fmt("%1%%2%" ANSI_BLUE " -----%3% %4%" ANSI_NORMAL,
- prefix,
- levelString,
- dashes,
- einfo.programName.value_or(""))
- << std::endl;
+ out << fmt("%1%%2%" ANSI_BLUE " -----%3% %4%" ANSI_NORMAL,
+ prefix,
+ levelString,
+ dashes,
+ einfo.programName.value_or(""))
+ << std::endl;
// filename.
if (einfo.nixCode.has_value()) {