X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Flibrary%2Flibrarian.ml;fp=components%2Flibrary%2Flibrarian.ml;h=cc3c96999453a8e88d1b42560c550acc347f3a0e;hb=718eb06483ac76c4eb3160277c02598f298d0968;hp=f2268488f2afbc3ce975578c072a172af1ec72ac;hpb=f06968e452cca8782e822d98bec9007404abcbbe;p=helm.git diff --git a/components/library/librarian.ml b/components/library/librarian.ml index f2268488f..cc3c96999 100644 --- a/components/library/librarian.ml +++ b/components/library/librarian.ml @@ -52,7 +52,7 @@ let find_root_for ~include_paths file = try let path = HExtlib.find_in include_paths file in let path = absolutize path in - (* HLog.debug ("file "^file^" resolved as "^path); *) +(* HLog.debug ("file "^file^" resolved as "^path); *) let rootpath, root, buri = try let mburi = Helm_registry.get "matita.baseuri" in @@ -65,12 +65,13 @@ let find_root_for ~include_paths file = let buri = List.assoc "baseuri" (load_root_file rootpath) in rootpath, Filename.dirname rootpath, buri in - (* HLog.debug ("file "^file^" rooted by "^rootpath^""); *) +(* HLog.debug ("file "^file^" rooted by "^rootpath^""); *) let uri = Http_getter_misc.strip_trailing_slash buri in if String.length uri < 5 || String.sub uri 0 5 <> "cic:/" then HLog.error (rootpath ^ " sets an incorrect baseuri: " ^ buri); ensure_trailing_slash root, remove_trailing_slash uri, path with Failure "find_in" -> + HLog.error ("We are in: " ^ Sys.getcwd ()); HLog.error ("Unable to find: "^file^"\nPaths explored:"); List.iter (fun x -> HLog.error (" - "^x)) include_paths; raise (NoRootFor file)