diff options
| author | Hugo Herbelin | 2017-01-31 06:36:25 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2017-01-31 09:41:13 +0100 |
| commit | f5923c2174fbb419397f127af31ab1cd0b223e0a (patch) | |
| tree | 3babfe486803cf4c0b27ed70f9b7f600ebb01f49 /tactics | |
| parent | a0fb4f60bb328935da053250e7964150fdf57a86 (diff) | |
Fixing #5311 (anomaly on unexpected intro pattern).
This was introduced in 8.5 while reorganizing the structure of
intro-patterns.
Diffstat (limited to 'tactics')
| -rw-r--r-- | tactics/tacinterp.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tactics/tacinterp.ml b/tactics/tacinterp.ml index 23d188aa73..2cfd2d6b12 100644 --- a/tactics/tacinterp.ml +++ b/tactics/tacinterp.ml @@ -894,7 +894,7 @@ let interp_or_and_intro_pattern_option ist env sigma = function (match coerce_to_intro_pattern env (Id.Map.find id ist.lfun) with | IntroAction (IntroOrAndPattern l) -> sigma, Some (loc,l) | _ -> - raise (CannotCoerceTo "a disjunctive/conjunctive introduction pattern")) + user_err_loc (loc,"", str "Cannot coerce to a disjunctive/conjunctive pattern.")) | Some (ArgArg (loc,l)) -> let sigma,l = interp_or_and_intro_pattern ist env sigma l in sigma, Some (loc,l) |
