X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2FmatitaExcPp.ml;h=42777735c2b96d4f9d4a6c2d26fb6783cf64417f;hb=1776f357e1a69fa1133956660b65d7bafdfe5c25;hp=8ed2724544acac69f1f5617883ccd454354274d5;hpb=45ac0bf0fb6c58e03646588d4f81cf5125058e67;p=helm.git diff --git a/matita/matitaExcPp.ml b/matita/matitaExcPp.ml index 8ed272454..42777735c 100644 --- a/matita/matitaExcPp.ml +++ b/matita/matitaExcPp.ml @@ -54,7 +54,10 @@ let rec to_string = fname | ProofEngineTypes.Fail msg -> None, "Tactic error: " ^ Lazy.force msg | Continuationals.Error s -> None, "Tactical error: " ^ Lazy.force s - | CicRefine.RefineFailure msg -> + | ProofEngineHelpers.Bad_pattern msg -> + None, "Bad pattern: " ^ Lazy.force msg + | CicRefine.RefineFailure msg + | CicRefine.AssertFailure msg -> None, "Refiner error: " ^ Lazy.force msg | CicTypeChecker.TypeCheckerFailure msg -> None, "Type checking error: " ^ Lazy.force msg @@ -93,10 +96,7 @@ let rec to_string = let (x, y) = HExtlib.loc_of_floc floc in let x = x + offset in let y = y + offset in - let flocb,floce = floc in - let floc = - {flocb with Lexing.pos_cnum = x}, {floce with Lexing.pos_cnum = y} - in + let floc = HExtlib.floc_of_loc (x,y) in Some floc | _ -> None in let rec explain =