X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaExcPp.ml;h=3ad6da153095dac5c56a026a084e1aabb147342c;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=adf35d92fb5d49107d8f9f68877d6858c54bb77e;hpb=82d56e6d22560ffb111c63cfdf0e200c8fa6fd3d;p=helm.git diff --git a/helm/matita/matitaExcPp.ml b/helm/matita/matitaExcPp.ml index adf35d92f..3ad6da153 100644 --- a/helm/matita/matitaExcPp.ml +++ b/helm/matita/matitaExcPp.ml @@ -53,5 +53,20 @@ let to_string = | 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