X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2FmatitaExcPp.ml;h=5ecea5dc85af80a7058da057170fc92f53f01c47;hb=c2a490a6bc12986720b2c84d6916854c6931e08d;hp=f6bd9b90c125499ce9085efedc3de5c3af3741fb;hpb=f6b7c6ae353e014761a3d24dbc87e00d828d7f2d;p=helm.git diff --git a/matita/matita/matitaExcPp.ml b/matita/matita/matitaExcPp.ml index f6bd9b90c..5ecea5dc8 100644 --- a/matita/matita/matitaExcPp.ml +++ b/matita/matita/matitaExcPp.ml @@ -114,10 +114,12 @@ let compact_disambiguation_errors all_passes errorll = let rec to_string = function - | HExtlib.Localized (floc,exn) -> + HExtlib.Localized (floc,exn) -> let _,msg = to_string exn in let (x, y) = HExtlib.loc_of_floc floc in Some floc, sprintf "Error at %d-%d: %s" x y msg + | NCicLibrary.IncludedFileNotCompiled (s1,s2) -> + None, "Including: "^s1^" "^s2^ "\nNothing to do... did you run matitadep?" | GrafiteTypes.Command_error msg -> None, "Error: " ^ msg | CicNotationParser.Parse_error err -> None, sprintf "Parse error: %s" err @@ -145,6 +147,15 @@ let rec to_string = None, "NCicEnvironment object not found: " ^ Lazy.force msg | NCicEnvironment.AlreadyDefined msg -> None, "NCicEnvironment already defined: " ^ Lazy.force msg + | MatitaEngine.CircularDependency fname -> + None, "Circular dependency including " ^ fname + | 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." + | MatitaEngine.FailureCompiling (filename,exn) -> + None, "Compiling " ^ filename ^ ":\n" ^ snd (to_string exn) | NCicRefiner.AssertFailure msg -> None, "NRefiner assert failure: " ^ Lazy.force msg | NCicEnvironment.BadDependency (msg,e) -> @@ -159,7 +170,7 @@ let rec to_string = | DisambiguateChoices.Choice_not_found msg -> None, ("Disambiguation choice not found: " ^ Lazy.force msg) | MatitaEngine.EnrichedWithStatus (exn,_) -> - None, "EnrichedWithStatus "^snd(to_string exn) + None, snd(to_string exn) | NTacStatus.Error (msg,None) -> None, "NTactic error: " ^ Lazy.force msg | NTacStatus.Error (msg,Some exn) ->