]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/ng_extraction/ocamlExtraction.ml
Improved exception handling.
[helm.git] / matita / components / ng_extraction / ocamlExtraction.ml
index da7eee5acda96d889b57e25a8ff94dd3f7cb32f9..a18d8a954181887d33a7e1822b6ec21d767b36a5 100644 (file)
@@ -18,8 +18,9 @@ let print_ocaml_of_obj0 status ((_uri,_,_,_,_) as obj) =
       status,()) res in
   status
  with
-  HExtlib.Localized (_,exn) ->
-   prerr_endline (Printexc.to_string exn); assert false
+    HExtlib.Localized (_,exn)
+  | exn ->
+     prerr_endline (Printexc.to_string exn); assert false
 
 let do_if_ocaml_set f status =
  if try ignore (Helm_registry.get "extract_ocaml"); true