diff options
| -rw-r--r-- | proofs/clenv.ml | 2 | ||||
| -rw-r--r-- | proofs/evar_refiner.ml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/proofs/clenv.ml b/proofs/clenv.ml index f59226e893..d5df3bc958 100644 --- a/proofs/clenv.ml +++ b/proofs/clenv.ml @@ -574,7 +574,7 @@ and w_resrec metas evars wc = | App (f,cl) when isConst f -> let wc' = mimick_evar f (Array.length cl) evn wc in w_resrec metas evars wc' - | _ -> error "w_Unify")) + | _ -> raise ex (* error "w_Unify" *))) | _ -> anomaly "w_resrec" diff --git a/proofs/evar_refiner.ml b/proofs/evar_refiner.ml index efbf675b7b..7ce48f2bb6 100644 --- a/proofs/evar_refiner.ml +++ b/proofs/evar_refiner.ml @@ -106,7 +106,7 @@ let w_Define sp c wc = let cty = try w_type_of (w_Focus sp wc) (mkCast (c,spdecl.evar_concl)) - with Not_found -> + with Not_found | (Type_errors.TypeError (_, Type_errors.UnboundVar _))-> error "Instantiation contains unlegal variables" in match spdecl.evar_body with |
