X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matitaB%2Fcomponents%2Fng_library%2FnCicLibrary.ml;h=201b5ac082b8a425726a4859db1c6c2f371f9a62;hb=4f3b04e9966484011328d5b0eb358da4416e29b0;hp=47a62c048c2bb78ebfd9e5a0cd83f759ebf40069;hpb=d0d2ebcf0ad48c38dcd69142f5e080e987fc5536;p=helm.git diff --git a/matitaB/components/ng_library/nCicLibrary.ml b/matitaB/components/ng_library/nCicLibrary.ml index 47a62c048..201b5ac08 100644 --- a/matitaB/components/ng_library/nCicLibrary.ml +++ b/matitaB/components/ng_library/nCicLibrary.ml @@ -56,7 +56,7 @@ let ng_path_of_baseuri ?(no_suffix=false) user baseuri = let path = String.sub uri 4 (String.length uri - 4) in let path = match user with | Some u -> "/" ^ u ^ path - | _ -> path + | _ -> prerr_endline "WARNING: ng_path_of_baseuri called without a uid"; path in let path = Helm_registry.get "matita.basedir" ^ path in let dirname = Filename.dirname path in @@ -361,7 +361,9 @@ let resolve st name = (fun (_,name',nref) -> if name'=name then Some nref else None) (!(st#lib_db.local_aliases) @ get_global_aliases ()) with - Not_found -> raise (NCicEnvironment.ObjectNotFound (lazy name)) + Not_found -> + (prerr_endline ("can't resolve object " ^ name); + raise (NCicEnvironment.ObjectNotFound (lazy name))) ;; let aliases_of st uri = @@ -428,7 +430,8 @@ let get_obj status u = with Not_found ->*) try fetch_obj (status#user) status u with Sys_error _ -> - raise (NCicEnvironment.ObjectNotFound (lazy (NUri.string_of_uri u))) + (prerr_endline ("can't fetch object " ^ NUri.string_of_uri u); + raise (NCicEnvironment.ObjectNotFound (lazy (NUri.string_of_uri u)))) ;; NCicEnvironment.set_get_obj