]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaExcPp.ml
ocaml 3.09 transition
[helm.git] / helm / matita / matitaExcPp.ml
index d6cddfaab85baeb16ae49a84a44abfed2fba1d90..3ad6da153095dac5c56a026a084e1aabb147342c 100644 (file)
@@ -49,6 +49,24 @@ let to_string =
         (".moo file '%s' has been compiled by a different version of matita, "
         ^^ "please recompile it")
         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