fix(library/tactic/induction_tactic): exception handling
This commit is contained in:
parent
6a87239a5d
commit
2b4233ee8e
1 changed files with 4 additions and 4 deletions
|
@ -351,14 +351,14 @@ public:
|
||||||
}
|
}
|
||||||
throw tactic_exception(sstream() << "invalid 'induction' tactic, hypothesis '" << m_h_name
|
throw tactic_exception(sstream() << "invalid 'induction' tactic, hypothesis '" << m_h_name
|
||||||
<< "' must have a type that is associated with a recursor");
|
<< "' 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) {
|
} catch (tactic_exception & ex) {
|
||||||
if (m_throw_ex)
|
if (m_throw_ex)
|
||||||
throw;
|
throw;
|
||||||
return optional<goals>();
|
return optional<goals>();
|
||||||
|
} catch (exception & ex) {
|
||||||
|
if (m_throw_ex)
|
||||||
|
throw tactic_exception(sstream() << "invalid 'induction' tactic, " << ex.what());
|
||||||
|
return optional<goals>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue