]> matita.cs.unibo.it Git - helm.git/commitdiff
ugly hack to make matitac not exit when called on a readonly baseuri, but just fail
authorEnrico Tassi <enrico.tassi@inria.fr>
Fri, 11 Jan 2008 15:15:38 +0000 (15:15 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Fri, 11 Jan 2008 15:15:38 +0000 (15:15 +0000)
helm/software/matita/matitacLib.ml

index 0763981c689255cd280a68e3e61e16f9b97e3750..f21b0917a574a6329ea503aadd7c47f360b9bf41 100644 (file)
@@ -141,7 +141,8 @@ let compile options fname =
       LibraryClean.clean_baseuris [baseuri];
       if (not (Http_getter_storage.is_empty ~local:true baseuri)) then begin
         HLog.error ("Baseuri "^baseuri^" not cleaned! (probably readonly)");
-        exit 1;
+        (* Ugly hack *)
+        raise Sys.Break
       end;
     end;
     (* create dir for XML files *)