aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vernac/vernacentries.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/vernac/vernacentries.ml b/vernac/vernacentries.ml
index 918852239a..697bb788ac 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)))