]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitacLib.ml
Improvements in matitatop: instead of doing exit -1 it enters the toploop
[helm.git] / helm / matita / matitacLib.ml
index 5f07aa406df52c7007c9f8e3d0f97636d8fd33a1..d82d3f7555db5a5c8335d62b290b0fc93c36137c 100644 (file)
@@ -155,7 +155,12 @@ let main ~mode =
        exit 0
      end
   with 
-  | Sys.Break -> MatitaLog.error "user break!"; exit ~-1
+  | Sys.Break ->
+      MatitaLog.error "user break!";
+      if mode = `COMPILER then
+        exit ~-1
+      else
+        pp_ocaml_mode ()
   | MatitaEngine.Drop ->
       if mode = `COMPILER then 
         exit 1 
@@ -168,4 +173,4 @@ let main ~mode =
      if mode = `COMPILER then
        exit 1
      else
-       go ()
+       pp_ocaml_mode ()