]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitac.ml
- added code for Coercion command, Print Env command.
[helm.git] / helm / matita / matitac.ml
index 3f394cdb1108e9dc70158ad99d51c66b714bccc0..bb796db1e79d8f005630d227cfacd8bdee3437a7 100644 (file)
@@ -87,7 +87,14 @@ let run_script fname =
   message (sprintf "execution of %s started:" fname);
   let script =
     let ic = open_in fname in
-    let ast = snd (CicTextualParser2.parse_script (Stream.of_channel ic)) in
+    let ast = 
+      try 
+        snd (CicTextualParser2.parse_script (Stream.of_channel ic)) 
+      with
+        exn -> 
+          error (explain exn); 
+          assert false (* should be something like (Unix.exit 1) *)
+    in
     close_in ic;
     ast
   in