From c526b81a9a682edf2270cb544e61fe60355003dc Mon Sep 17 00:00:00 2001 From: letouzey Date: Wed, 13 Mar 2013 00:00:49 +0000 Subject: Restrict (try...with...) to avoid catching critical exn (part 13) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16290 85f007b7-540e-0410-9357-904b9bb8a0f7 --- tools/coq_tex.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/coq_tex.ml b/tools/coq_tex.ml index 87db336d90..c19a9c3f1a 100644 --- a/tools/coq_tex.ml +++ b/tools/coq_tex.ml @@ -209,7 +209,7 @@ let insert texfile coq_output result = (* Process of one TeX file *) -let rm f = try Sys.remove f with _ -> () +let rm f = try Sys.remove f with any -> () let one_file texfile = let inputv = Filename.temp_file "coq_tex" ".v" in @@ -233,9 +233,9 @@ let one_file texfile = insert texfile coq_output result; (* 4. clean up *) rm inputv; rm coq_output - with e -> begin + with reraise -> begin rm inputv; rm coq_output; - raise e + raise reraise end (* Parsing of the command line, check of the Coq command and process -- cgit v1.2.3