]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaExcPp.ml
- added integrity checks on .moo files
[helm.git] / helm / matita / matitaExcPp.ml
index f141b129a73b686448c694a334af057e8d5f7de6..fce5cf6d991bea50ffc5fb8a41c1d7aad703a115 100644 (file)
@@ -40,5 +40,14 @@ let to_string =
   | 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
   | exn -> "Uncaught exception: " ^ Printexc.to_string exn