X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaExcPp.ml;h=a5a2f4d86a73a44772addd8852296e77aab03741;hb=2bb6c98121db82a1c67565bb528787f2def7192d;hp=6dccc429fae99293349978c5764c55bb09d9dca7;hpb=192884dae520029b152a3f69989e51cc8af158ce;p=helm.git diff --git a/helm/matita/matitaExcPp.ml b/helm/matita/matitaExcPp.ml index 6dccc429f..a5a2f4d86 100644 --- a/helm/matita/matitaExcPp.ml +++ b/helm/matita/matitaExcPp.ml @@ -55,5 +55,16 @@ let to_string = "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" (List.map Lazy.force phase) ^ "\n" ^ "\n" + in + "DISAMBIGUATION ERROR:\n" ^ + aux 1 errorll | exn -> "Uncaught exception: " ^ Printexc.to_string exn