Print why we called std::terminate
authorPhil Willoughby <philwill@fb.com>
Wed, 12 Oct 2016 09:44:45 +0000 (02:44 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Wed, 12 Oct 2016 09:53:30 +0000 (02:53 -0700)
commitfec7b1bc321fa6faa4af5a57d7b29ecc363ff7dc
tree1e6c2600cd38177827c9ac3ca5517db4c06643cb
parent1d2f2dcf9d7b52cbfea7260e7e4da8743bf5fc4b
Print why we called std::terminate

Summary:
When terminating because we were told to rethrow a nonexistent exception, we
now print that to `std::cerr` for the benefit of users on platforms which do not dump a stack trace on
`std::terminate`

Reviewed By: yfeldblum

Differential Revision: D4001087

fbshipit-source-id: 5b834cfc75bf42bec06a49ac9db55789a83df180
folly/ExceptionWrapper.h
folly/test/ExceptionWrapperTest.cpp