1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00
This commit is contained in:
Eelco Dolstra 2016-09-20 17:49:31 +02:00
parent f12d56b27b
commit beaefdf706
3 changed files with 5 additions and 8 deletions

View file

@ -1230,10 +1230,10 @@ string base64Decode(const string & s)
}
void callFailure(const std::function<void(std::exception_ptr exc)> & failure)
void callFailure(const std::function<void(std::exception_ptr exc)> & failure, std::exception_ptr exc)
{
try {
failure(std::current_exception());
failure(exc);
} catch (std::exception & e) {
printMsg(lvlError, format("uncaught exception: %s") % e.what());
abort();