aboutsummaryrefslogtreecommitdiff
path: root/plugins/omega
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-05-15 13:46:59 +0200
committerPierre-Marie Pédrot2020-05-15 13:46:59 +0200
commitb5b6e2d4c8347cb25da6f827a6b6f06cb0f566e5 (patch)
tree74557075886e9ce7c8ac146425195ba48dd06584 /plugins/omega
parentbcfb5f2cab54d0eb88ed57911b77c05d2b916431 (diff)
parente8bde450d05908f70ab2c82d9d24f0807c56a94a (diff)
Merge PR #11755: [exn] [tactics] improve backtraces on monadic errors
Ack-by: gares Ack-by: ppedrot
Diffstat (limited to 'plugins/omega')
-rw-r--r--plugins/omega/coq_omega.ml8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/omega/coq_omega.ml b/plugins/omega/coq_omega.ml
index 79d6c05e1d..3ba6365783 100644
--- a/plugins/omega/coq_omega.ml
+++ b/plugins/omega/coq_omega.ml
@@ -1475,7 +1475,9 @@ let coq_omega =
let path = simplify_strong (new_id,new_var_num,display_var) system in
if !display_action_flag then display_action display_var path;
tclTHEN prelude (replay_history tactic_normalisation path)
- with NO_CONTRADICTION -> tclZEROMSG (Pp.str"Omega can't solve this system")
+ with NO_CONTRADICTION as e ->
+ let _, info = Exninfo.capture e in
+ tclZEROMSG ~info (Pp.str"Omega can't solve this system")
end
end
@@ -1890,7 +1892,9 @@ let destructure_goal =
end)
intro
with Undecidable -> Tactics.elim_type (Lazy.force coq_False)
- | e when Proofview.V82.catchable_exception e -> Proofview.tclZERO e
+ | e when Proofview.V82.catchable_exception e ->
+ let e, info = Exninfo.capture e in
+ Proofview.tclZERO ~info e
in
tclTHEN goal_tac destructure_hyps
in