]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitadep.ml
- MatitaLog output redirected to stderr for every message <> Message
[helm.git] / helm / matita / matitadep.ml
index 88cac82807ff10953bb6549372b70c5a49b94de2..e355ab59c9efeaff8ca90a642114104e0e25d64d 100644 (file)
@@ -95,7 +95,13 @@ let main () =
               (_, TA.Alias (_, TA.Ident_alias(_, uri)))) -> 
                 Hashtbl.add aliases file uri
           | TA.Executable (_, TA.Command (_, TA.Include (_, path))) ->
-              Hashtbl.add deps file (MatitaMisc.obj_file_of_script (find path))
+             (try
+               Hashtbl.add deps file (MatitaMisc.obj_file_of_script (find path))
+              with
+               Sys_error _ ->
+                MatitaLog.error
+                 ("In file " ^ file ^ " unable to include " ^ path)
+             )
           | _ -> ()
         with 
           CicNotationParser.Parse_error _ as exn ->