aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-05-16 13:15:12 +0200
committerGaëtan Gilbert2019-05-17 14:33:28 +0200
commitbe9a1834a48393185ec9cfd9c18d157fd2a7ff02 (patch)
tree5f550b3a8655adeaa9686932bb12a850c3c13ce4
parente9c2bc9aaddd401d18d90411ff68644b1d05c0d5 (diff)
Fail: don't catch critical errors
Not sure why we didn't. Fail didn't catch anomalies almost by accident. It still makes sense to catch Timeout here imo
-rw-r--r--vernac/vernacentries.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/vernac/vernacentries.ml b/vernac/vernacentries.ml
index e1d134f3a9..7bb4f71014 100644
--- a/vernac/vernacentries.ml
+++ b/vernac/vernacentries.ml
@@ -2204,7 +2204,7 @@ let with_fail ~st f =
try let _ = f () in raise HasNotFailed
with
| HasNotFailed as e -> raise e
- | e ->
+ | e when CErrors.noncritical e || e = Timeout ->
let e = CErrors.push e in
raise (HasFailed (CErrors.iprint
(ExplainErr.process_vernac_interp_error ~allow_uncaught:false e)))