fix(library/tactic/induction_tactic): exception handling

This commit is contained in:
Leonardo de Moura 2015-05-21 10:15:49 -07:00
parent 6a87239a5d
commit 2b4233ee8e

View file

@ -351,14 +351,14 @@ public:
}
throw tactic_exception(sstream() << "invalid 'induction' tactic, hypothesis '" << m_h_name
<< "' must have a type that is associated with a recursor");
} catch (exception & ex) {
if (m_throw_ex)
throw tactic_exception(sstream() << "invalid 'induction' tactic, " << ex.what());
return optional<goals>();
} catch (tactic_exception & ex) {
if (m_throw_ex)
throw;
return optional<goals>();
} catch (exception & ex) {
if (m_throw_ex)
throw tactic_exception(sstream() << "invalid 'induction' tactic, " << ex.what());
return optional<goals>();
}
}
};