From 9aecb4427f0f8ca3cb4c26bc7f73bb74164a93d9 Mon Sep 17 00:00:00 2001 From: letouzey Date: Wed, 13 Mar 2013 00:00:17 +0000 Subject: Restrict (try...with...) to avoid catching critical exn (part 8) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16284 85f007b7-540e-0410-9357-904b9bb8a0f7 --- lib/errors.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/errors.ml') diff --git a/lib/errors.ml b/lib/errors.ml index 27baf4314f..0d13fcd2f9 100644 --- a/lib/errors.ml +++ b/lib/errors.ml @@ -73,7 +73,7 @@ let rec print_gen bottom stk e = try h e with | Unhandled -> print_gen bottom stk' e - | e' -> print_gen bottom stk' e' + | any -> print_gen bottom stk' any (** Only anomalies should reach the bottom of the handler stack. In usual situation, the [handle_stack] is treated as it if was always -- cgit v1.2.3