3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 09:35:32 +00:00

Better error reporting #5746

This commit is contained in:
Nikolaj Bjorner 2022-01-02 11:31:50 -08:00
parent 543c16c73e
commit 88707f37e7
2 changed files with 8 additions and 1 deletions

View file

@ -344,6 +344,10 @@ public:
IF_VERBOSE(10, verbose_stream() << ex.msg() << " in or-else\n");
throw;
}
catch (const std::exception &ex) {
IF_VERBOSE(10, verbose_stream() << ex.what() << " in or-else\n");
throw;
}
catch (...) {
IF_VERBOSE(10, verbose_stream() << " unclassified exception in or-else\n");
// std::current_exception returns a std::exception_ptr, which apparently