diff options
| author | letouzey | 2013-03-13 00:00:40 +0000 |
|---|---|---|
| committer | letouzey | 2013-03-13 00:00:40 +0000 |
| commit | 1b2e9b8aa5b5b0941ac331c1a95b406c053ffbdf (patch) | |
| tree | 59a175569af4ac1e3a593a8163b695931affb497 /proofs/pfedit.ml | |
| parent | 7e50cbcc7e0ecbc9c4dd7bace9f2cb261a2c2d84 (diff) | |
Restrict (try...with...) to avoid catching critical exn (part 12)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16288 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'proofs/pfedit.ml')
| -rw-r--r-- | proofs/pfedit.ml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/proofs/pfedit.ml b/proofs/pfedit.ml index 961ff41fb7..d8609ed80f 100644 --- a/proofs/pfedit.ml +++ b/proofs/pfedit.ml @@ -55,10 +55,10 @@ let start_proof id str hyps c ?init_tac ?compute_guard hook = | None -> Proofview.tclUNIT () in try Proof_global.run_tactic tac - with e -> - let e = Errors.push e in + with reraise -> + let reraise = Errors.push reraise in Proof_global.discard_current (); - raise e + raise reraise let restart_proof () = undo_todepth 1 @@ -154,9 +154,9 @@ let build_constant_by_tactic id sign typ tac = let _,(const,_,_,_) = cook_proof (fun _ -> ()) in delete_current_proof (); const - with e -> + with reraise -> delete_current_proof (); - raise e + raise reraise let build_by_tactic env typ tac = let id = Id.of_string ("temporary_proof"^string_of_int (next())) in |
