mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
convert some printError calls to logError
This commit is contained in:
parent
4b99c09f5c
commit
ab6f0b9641
19 changed files with 195 additions and 70 deletions
|
@ -1417,15 +1417,15 @@ string base64Decode(const string & s)
|
|||
}
|
||||
|
||||
|
||||
void callFailure(const std::function<void(std::exception_ptr exc)> & failure, std::exception_ptr exc)
|
||||
{
|
||||
try {
|
||||
failure(exc);
|
||||
} catch (std::exception & e) {
|
||||
printError("uncaught exception: %s", e.what());
|
||||
abort();
|
||||
}
|
||||
}
|
||||
// void callFailure(const std::function<void(std::exception_ptr exc)> & failure, std::exception_ptr exc)
|
||||
// {
|
||||
// try {
|
||||
// failure(exc);
|
||||
// } catch (std::exception & e) {
|
||||
// printError("uncaught exception: %s", e.what());
|
||||
// abort();
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
static Sync<std::pair<unsigned short, unsigned short>> windowSize{{0, 0}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue