diff options
Diffstat (limited to 'pretyping')
-rw-r--r-- | pretyping/tacred.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pretyping/tacred.ml b/pretyping/tacred.ml index c11f38c8f..8b34b5f8f 100644 --- a/pretyping/tacred.ml +++ b/pretyping/tacred.ml @@ -858,8 +858,9 @@ let reduction_of_redexp = function | Unfold ubinds -> unfoldn ubinds | Fold cl -> fold_commands cl | Pattern lp -> pattern_occs lp - | ExtraRedExpr (s,c) -> Stringmap.find s !red_expr_tab - + | ExtraRedExpr (s,c) -> + (try Stringmap.find s !red_expr_tab + with Not_found -> error("unknown user-defined reduction \""^s^"\"")) (* Used in several tactics. *) exception NotStepReducible |