mirror of
https://github.com/NixOS/nix
synced 2024-10-18 00:16:11 -04:00
ThreadPool: don't silently ignore non-std exceptions
Introduced in 8f6b347abd
without explanation.
Throwing anything that's not that is a programming mistake that we don't want
to ignore silently. A crash would be ok, because that means we/they can fix
the offending throw.
This commit is contained in:
parent
16320f6d24
commit
fd8a4a86d9
|
@ -119,7 +119,6 @@ void ThreadPool::doWork(bool mainThread)
|
||||||
// Similarly expected.
|
// Similarly expected.
|
||||||
} catch (std::exception & e) {
|
} catch (std::exception & e) {
|
||||||
ignoreExceptionExceptInterrupt();
|
ignoreExceptionExceptInterrupt();
|
||||||
} catch (...) {
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue