diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-05-13 15:56:39 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-05-13 15:56:39 -0600 |
commit | ef9dd9f9bc18abc9761812e30a26008c99a26166 (patch) | |
tree | 2e5827206456f2a0f7a94c2e3bf8c9ad5ca39254 /src/nix-daemon | |
parent | d44bac1d9232374bf823ed24f5a5ae693f89fb7d (diff) |
formatting and a few minor changes
Diffstat (limited to 'src/nix-daemon')
-rw-r--r-- | src/nix-daemon/nix-daemon.cc | 4 |
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); } } |