X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaExcPp.ml;h=3ad6da153095dac5c56a026a084e1aabb147342c;hb=97c2d258a5c524eb5c4b85208899d80751a2c82f;hp=a80d0a2fb8c5ffbbec9d751feda624686579d65b;hpb=9617a4074687985d707bba122dc01323b6dd055f;p=helm.git diff --git a/helm/matita/matitaExcPp.ml b/helm/matita/matitaExcPp.ml index a80d0a2fb..3ad6da153 100644 --- a/helm/matita/matitaExcPp.ml +++ b/helm/matita/matitaExcPp.ml @@ -51,5 +51,22 @@ let to_string = fname | ProofEngineTypes.Fail msg -> "Tactic error: " ^ Lazy.force msg | Continuationals.Error s -> "Tactical error: " ^ Lazy.force s + | CicTypeChecker.TypeCheckerFailure msg -> + "Type checking error: " ^ Lazy.force msg + | CicTypeChecker.AssertFailure msg -> + "Type checking assertion failed: " ^ Lazy.force msg + | MatitaDisambiguator.DisambiguationError errorll -> + let rec aux n = + function + [] -> "" + | phase::tl -> + aux (n+1) tl ^ + "***** Errors obtained during phase " ^ string_of_int n ^": *****\n"^ + String.concat "\n\n" + (List.map (fun msg -> "*Error: " ^ Lazy.force msg) phase) ^ + "\n\n\n" + in + "********** DISAMBIGUATION ERRORS: **********\n" ^ + aux 1 errorll | exn -> "Uncaught exception: " ^ Printexc.to_string exn