chore(library/equations_compiler/elim_match): add cases/induction tactic error message to trace

This commit is contained in:
Leonardo de Moura 2016-09-04 17:33:26 -07:00
parent 6c80f7b75c
commit 120bffce25

View file

@ -620,8 +620,8 @@ struct elim_match_fn {
lean_assert(length(new_goals) == length(new_goal_cnames));
lean_assert(length(new_goals) == length(ilist));
lean_assert(length(new_goals) == length(slist));
} catch (exception &) {
trace_match(tout() << "dependent pattern matching step failed\n";);
} catch (exception & ex) {
trace_match(tout() << "dependent pattern matching step failed\n" << ex.what() << "\n";);
throw_error("equation compiler failed (use 'set_option trace.eqn_compiler.elim_match true' "
"for additional details)");
}