aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorHugo Herbelin2020-03-02 23:51:17 +0100
committerHugo Herbelin2020-03-13 07:37:25 +0100
commitbc77fdc4330c8572111102d61fd65f032b1cf5b6 (patch)
treebe7862d0a922434e9c00018a6faed7c657e39d36 /engine
parentee2c5352d95adee5a31689c79785547c0dbaa749 (diff)
Double-checking at tclZERO entry that the exception is non critical.
Diffstat (limited to 'engine')
-rw-r--r--engine/proofview.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/proofview.ml b/engine/proofview.ml
index 6a4e490408..d20c660311 100644
--- a/engine/proofview.ml
+++ b/engine/proofview.ml
@@ -262,6 +262,8 @@ module Monad = Proof
(** [tclZERO e] fails with exception [e]. It has no success. *)
let tclZERO ?info e =
+ if not (CErrors.noncritical e) then
+ CErrors.anomaly (Pp.str "tclZERO receiving critical error: " ++ CErrors.print e);
let info = match info with
| None -> Exninfo.null
| Some info -> info