"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