]> matita.cs.unibo.it Git - helm.git/commitdiff
better error message in case inclusion failed
authorEnrico Tassi <enrico.tassi@inria.fr>
Tue, 12 Feb 2008 12:08:39 +0000 (12:08 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Tue, 12 Feb 2008 12:08:39 +0000 (12:08 +0000)
helm/software/matita/matitaScript.ml

index 828002a8bca0a522c484a0b38fd63d2328179e59..477e775d8dfe8cca961a6e892c042398db91a059 100644 (file)
@@ -140,7 +140,11 @@ let wrap_with_make include_paths (f : GrafiteParser.statement) x =
             HLog.error ("Unexpected " ^ snd(MatitaExcPp.to_string exn));
             assert false
       in
-      if b then f ~include_paths x 
+      if b then 
+        try f ~include_paths x with LexiconEngine.IncludedFileNotCompiled _ ->
+         raise 
+           (Failure ("Including: "^tgt^
+             "\nNothing to do... did you run matitadep?"))
       else raise (Failure ("Compiling: " ^ tgt))
 ;;