aboutsummaryrefslogtreecommitdiff
path: root/plugins/ssr
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/ssr
parentbcfb5f2cab54d0eb88ed57911b77c05d2b916431 (diff)
parente8bde450d05908f70ab2c82d9d24f0807c56a94a (diff)
Merge PR #11755: [exn] [tactics] improve backtraces on monadic errors
Ack-by: gares Ack-by: ppedrot
Diffstat (limited to 'plugins/ssr')
-rw-r--r--plugins/ssr/ssrview.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/ssr/ssrview.ml b/plugins/ssr/ssrview.ml
index 88a3e85211..ad0a31622c 100644
--- a/plugins/ssr/ssrview.ml
+++ b/plugins/ssr/ssrview.ml
@@ -194,9 +194,11 @@ let interp_glob ist glob = Goal.enter_one ~__LOC__ begin fun goal ->
Pp.(str"interp-out: " ++ Printer.pr_econstr_env env sigma term));
tclUNIT (env,sigma,term)
with e ->
+ (* XXX this is another catch all! *)
+ let e, info = Exninfo.capture e in
Ssrprinters.ppdebug (lazy
Pp.(str"interp-err: " ++ Printer.pr_glob_constr_env env glob));
- tclZERO e
+ tclZERO ~info e
end
(* Commits the term to the monad *)