diff options
| author | herbelin | 2002-06-06 14:24:09 +0000 |
|---|---|---|
| committer | herbelin | 2002-06-06 14:24:09 +0000 |
| commit | c04a214b50698cb8747e4e08fcc5cd52021068ad (patch) | |
| tree | 96d06873755a0dba71ee086b13847648bc0cb998 | |
| parent | bf1cf405edf4d718bd93494a4ebc26e6f7ea7c63 (diff) | |
Passage de PatternMatchingFailure vers UserError pour capture par tclFIRST
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2761 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | tactics/dhyp.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tactics/dhyp.ml b/tactics/dhyp.ml index 720cb6f5f1..d73677617b 100644 --- a/tactics/dhyp.ml +++ b/tactics/dhyp.ml @@ -244,7 +244,9 @@ let forward_tac_interp = let set_extern_interp f = forward_tac_interp := f let applyDestructor cls discard dd gls = - let mvb = match_dpat dd.d_pat cls gls in + let mvb = + try match_dpat dd.d_pat cls gls + with PatternMatchingFailure -> error "No match" in let tac = match cls with | Some id -> let arg = Reference (RIdent (dummy_loc,id)) in |
