3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +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

@ -607,7 +607,10 @@ extern "C" {
return Z3_L_UNDEF;
}
catch (...) {
to_solver_ref(s)->set_reason_unknown(eh);
if (eh.caller_id() == event_handler_caller_t::UNSET_EH_CALLER)
to_solver_ref(s)->set_reason_unknown("unclassified exception");
else
to_solver_ref(s)->set_reason_unknown(eh);
to_solver(s)->set_eh(nullptr);
return Z3_L_UNDEF;
}