From 4bf8b2d6fd77035e9c6317920539b609df71ca81 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Tue, 2 Feb 2016 09:49:15 +0100 Subject: Do not hide critical errors with a blind catch all (fix #19) --- mathcomp/ssreflect/plugin/trunk/ssrmatching.ml4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mathcomp/ssreflect/plugin/trunk') diff --git a/mathcomp/ssreflect/plugin/trunk/ssrmatching.ml4 b/mathcomp/ssreflect/plugin/trunk/ssrmatching.ml4 index 291315c..dbc7f8b 100644 --- a/mathcomp/ssreflect/plugin/trunk/ssrmatching.ml4 +++ b/mathcomp/ssreflect/plugin/trunk/ssrmatching.ml4 @@ -659,7 +659,7 @@ let match_upats_HO ~on_instance upats env sigma0 ise c = | Pretype_errors.PretypeError (_,_,Pretype_errors.UnsatisfiableConstraints _) -> failed_because_of_TC:=true - | _ -> () in + | e when Errors.noncritical e -> () in List.iter one_match fpats done; iter_constr_LR (aux upats env sigma0 ise) f; -- cgit v1.2.3