X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaExcPp.ml;h=6dccc429fae99293349978c5764c55bb09d9dca7;hb=0f0e760ebe7483631922be798113ec8c514c292f;hp=2c46da4f566c4f42488c65c430428787378ce752;hpb=6b5e1d495c61f459738187e8d71efadb162abdbe;p=helm.git diff --git a/helm/matita/matitaExcPp.ml b/helm/matita/matitaExcPp.ml index 2c46da4f5..6dccc429f 100644 --- a/helm/matita/matitaExcPp.ml +++ b/helm/matita/matitaExcPp.ml @@ -37,5 +37,23 @@ let to_string = | UriManager.IllFormedUri uri -> sprintf "invalid uri: %s" uri | CicEnvironment.Object_not_found uri -> sprintf "object not found: %s" (UriManager.string_of_uri uri) + | Unix.Unix_error (code, api, param) -> + let err = Unix.error_message code in + "Unix Error (" ^ api ^ "): " ^ err + | MatitaMoo.Corrupt_moo fname -> + sprintf ".moo file '%s' is corrupt (shorter than expected)" fname + | MatitaMoo.Checksum_failure fname -> + sprintf "checksum failed for .moo file '%s', please recompile it'" fname + | MatitaMoo.Version_mismatch fname -> + sprintf + (".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 | exn -> "Uncaught exception: " ^ Printexc.to_string exn