• Kenton Varda's avatar
    Make printStackTraceOnCrash() also register an std::terminate handler. · 55a6731a
    Kenton Varda authored
    For whatever reason, the default termination handler on my machine is no longer printing the exception's `what()` string. It just aborts. That makes debugging hard.
    
    This also means that we can now use `noexcept` in unit tests as a way to make uncaught exceptions abort the process _without_ unwinding, which is especially useful in tests that create threads since they often deadlock during unwind waiting for the thread to finish.
    55a6731a
exception.c++ 36.9 KB