X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2FmatitaExcPp.ml;h=c3c78929ff8e978eae839c1cf7cf677940df4778;hb=936f80cf031a7b034dd70fef49abb90e69f2e680;hp=f378e99b0e0c54d65d8528506a71c5a8ce630955;hpb=9dec56b0dcc55853244fa5ca401c1c19dac3d9d2;p=helm.git diff --git a/matita/matitaExcPp.ml b/matita/matitaExcPp.ml index f378e99b0..c3c78929f 100644 --- a/matita/matitaExcPp.ml +++ b/matita/matitaExcPp.ml @@ -54,6 +54,8 @@ let rec to_string = fname | ProofEngineTypes.Fail msg -> None, "Tactic error: " ^ Lazy.force msg | Continuationals.Error s -> None, "Tactical error: " ^ Lazy.force s + | ProofEngineHelpers.Bad_pattern msg -> + None, "Bad pattern: " ^ Lazy.force msg | CicRefine.RefineFailure msg -> None, "Refiner error: " ^ Lazy.force msg | CicTypeChecker.TypeCheckerFailure msg -> @@ -71,7 +73,7 @@ let rec to_string = | phase::tl -> let msg = String.concat "\n\n\n" - (List.map (fun (_,floc,msg) -> + (List.map (fun (_,_,floc,msg,significant) -> let loc_descr = match floc with None -> "" @@ -79,7 +81,8 @@ let rec to_string = let (x, y) = HExtlib.loc_of_floc floc in sprintf " at %d-%d" (x+offset) (y+offset) in - "*Error" ^ loc_descr ^ ": " ^ Lazy.force msg) phase) + "*" ^ (if not significant then "(Ignorable) " else "") + ^ "Error" ^ loc_descr ^ ": " ^ Lazy.force msg) phase) in if msg = prev_msg then aux (n+1) (msg,phases@[n]) tl @@ -88,7 +91,7 @@ let rec to_string = (aux (n+1) (msg,[n]) tl) in let loc = match errorll with - ((_,Some floc,_)::_)::_ -> + ((_,_,Some floc,_,_)::_)::_ -> let (x, y) = HExtlib.loc_of_floc floc in let x = x + offset in let y = y + offset in