aboutsummaryrefslogtreecommitdiff
path: root/src/nix-daemon
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-05-13 15:56:39 -0600
committerBen Burdette <bburdette@gmail.com>2020-05-13 15:56:39 -0600
commitef9dd9f9bc18abc9761812e30a26008c99a26166 (patch)
tree2e5827206456f2a0f7a94c2e3bf8c9ad5ca39254 /src/nix-daemon
parentd44bac1d9232374bf823ed24f5a5ae693f89fb7d (diff)
formatting and a few minor changes
Diffstat (limited to 'src/nix-daemon')
-rw-r--r--src/nix-daemon/nix-daemon.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 731ab22e5..582c78d14 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -248,8 +248,8 @@ static void daemonLoop(char * * argv)
return;
} catch (Error & error) {
ErrorInfo ei = error.info();
- string prevhint = (error.info().hint.has_value() ? error.info().hint->str() : "");
- ei.hint = std::optional(hintfmt("error processing connection: %1%", prevhint));
+ ei.hint = std::optional(hintfmt("error processing connection: %1%",
+ (error.info().hint.has_value() ? error.info().hint->str() : "")));
logError(ei);
}
}