X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2FmatitaExcPp.ml;h=169800e5997fd6ee92e46e7f64bc77906090140c;hb=refs%2Fheads%2Fmaster;hp=da46ed88c5029d7a3dd43ea3bbdf446accfb1f26;hpb=a8648828c3546e3ad7cf474ba4a87c2faa245b9f;p=helm.git diff --git a/matita/matita/matitaExcPp.ml b/matita/matita/matitaExcPp.ml index da46ed88c..169800e59 100644 --- a/matita/matita/matitaExcPp.ml +++ b/matita/matita/matitaExcPp.ml @@ -106,7 +106,7 @@ let compact_disambiguation_errors all_passes errorll = filter choices in filter_phase_3 - (List.map (fun o,l -> o,List.sort choices_compare_by_passes l) + (List.map (fun (o,l) -> o,List.sort choices_compare_by_passes l) (uniq (List.stable_sort choices_compare choices))) in choices @@ -124,7 +124,7 @@ let rec to_string exn = | GrafiteTypes.Command_error msg -> None, "Error: " ^ msg | CicNotationParser.Parse_error err -> None, sprintf "Parse error: %s" err - | Unix.Unix_error (code, api, param) -> + | Unix.Unix_error (code, api, _param) -> let err = Unix.error_message code in None, "Unix Error (" ^ api ^ "): " ^ err | HMarshal.Corrupt_file fname -> None, sprintf "file '%s' is corrupt" fname @@ -155,8 +155,7 @@ let rec to_string exn = | MatitaEngine.TryingToAdd msg -> None, "Attempt to insert an alias in batch mode: " ^ Lazy.force msg | MatitaEngine.AlreadyLoaded msg -> - None, "The file " ^ Lazy.force msg ^ " needs recompilation but it is - already loaded; undo the inclusion and try again." + None, "The file " ^ Lazy.force msg ^ " needs recompilation but it is already loaded; undo the inclusion and try again." | MatitaEngine.FailureCompiling (filename,exn) -> None, "Compiling " ^ filename ^ ":\n" ^ snd (to_string exn) | NCicRefiner.AssertFailure msg -> @@ -241,4 +240,5 @@ let rec to_string exn = explain (aux errorll) | exn -> None, ("Uncaught exception: " ^ Printexc.to_string exn ^ Printexc.get_backtrace ())) with exn -> - None, ("Exception raised during pretty-printing of an exception: " ^ Printexc.to_string exn ^ Printexc.get_backtrace ()) + None, ("Exception raised during pretty-printing of an exception: " ^ + snd (to_string exn))