mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
appending to hints; remove _printError
This commit is contained in:
parent
f30de61578
commit
7ffb5efdbc
4 changed files with 18 additions and 9 deletions
|
@ -246,9 +246,12 @@ static void daemonLoop(char * * argv)
|
|||
|
||||
} catch (Interrupted & e) {
|
||||
return;
|
||||
} catch (Error & e) {
|
||||
} catch (Error & error) {
|
||||
// TODO append error message
|
||||
_printError("error processing connection: %1%", e.msg());
|
||||
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));
|
||||
logError(ei);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue