X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fcic_unification%2FcicRefine.ml;h=954c4835bcd05b3d7a126ed7483656f0bcdc08bc;hb=fd59d7976b78befa809be455dcb5af1db1955d4f;hp=970d3e05f70b2c4deb33a993fbdf9ceaf0cbb6fa;hpb=14139694d817bd900f7f0fb412c69cf431baaad9;p=helm.git diff --git a/helm/software/components/cic_unification/cicRefine.ml b/helm/software/components/cic_unification/cicRefine.ml index 970d3e05f..954c4835b 100644 --- a/helm/software/components/cic_unification/cicRefine.ml +++ b/helm/software/components/cic_unification/cicRefine.ml @@ -1856,10 +1856,13 @@ let typecheck metasenv uri obj ~localization_tbl = " but is here used with type " ^ CicMetaSubst.ppterm_in_context ~metasenv [] ty' []) in - match exn with - RefineFailure _ -> raise (HExtlib.Localized (loc exn,RefineFailure msg)) - | Uncertain _ -> raise (HExtlib.Localized (loc exn,Uncertain msg)) - | _ -> assert false + let exn' = + match exn with + RefineFailure _ -> RefineFailure msg + | Uncertain _ -> Uncertain msg + | _ -> assert false + in + raise (HExtlib.Localized (loc exn',exn')) in let bo' = CicMetaSubst.apply_subst subst bo' in let ty' = CicMetaSubst.apply_subst subst ty' in