feat(library/error_handling): improve unifier_exception error message

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-06-26 08:49:50 -07:00
parent e735a8e5ff
commit 6085a54416

View file

@ -53,7 +53,8 @@ static void display_error(io_state_stream const & ios, pos_info_provider const *
formatter fmt = ios.get_formatter();
options opts = ios.get_options();
auto j = ex.get_justification();
ios << mk_pair(j.pp(fmt, opts, p, ex.get_substitution()), opts) << endl;
display_error_pos(ios, p, j.get_main_expr());
ios << " " << mk_pair(j.pp(fmt, opts, p, ex.get_substitution()), opts) << endl;
}
// struct delta_pos_info_provider : public pos_info_provider {