From 8875457d54bf5867723d85a6ffb451c4fbc4f188 Mon Sep 17 00:00:00 2001 From: barras Date: Fri, 14 Sep 2001 10:01:23 +0000 Subject: exceptions git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1965 85f007b7-540e-0410-9357-904b9bb8a0f7 --- proofs/refiner.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proofs') diff --git a/proofs/refiner.ml b/proofs/refiner.ml index ab7a4958ce..4ca9a06158 100644 --- a/proofs/refiner.ml +++ b/proofs/refiner.ml @@ -577,7 +577,7 @@ let top_goal_of_pftreestate pts = let nth_goal_of_pftreestate n pts = let goals = fst (frontier pts.tpf) in try {it = List.nth goals (n-1); sigma = pts.tpfsigma } - with Failure "nth" -> non_existent_goal n + with Invalid_argument _ | Failure _ -> non_existent_goal n let descend n p = match p.ref with -- cgit v1.2.3