- get_obj now has a better behaviour when an unchecked object is retrieved
(* The body does not exist ==> we consider it an axiom *)
None
in
- let obj = CicParser.obj_of_xml filename bodyfilename uri in
+ let obj = CicParser.obj_of_xml filename bodyfilename in
if cleanup_tmp then
begin
Unix.unlink filename ;
Cache.find_cooked uri
with Not_found ->
if not (!trust_obj uri) then
- prerr_endline ("@@@ OOOOOOOPS: WE TRUST " ^ UriManager.string_of_uri uri ^ " EVEN IF WE SHOULD NOT DO THAT! THAT MEANS LOOKING FOR TROUBLES ;-(") ;
- match is_type_checked uri with
- CheckedObj obj -> obj
- | _ -> assert false
+ begin
+ prerr_endline ("@@@ OOOOOOOPS: WE DO NOT TRUST " ^ UriManager.string_of_uri uri ^ " EVEN IF WE ARE REQUIRED TO DO THAT! THAT MAY MEAN LOOKING FOR TROUBLES ;-(") ;
+ raise Not_found
+ end
+ else
+ match is_type_checked uri with
+ CheckedObj obj -> obj
+ | _ -> assert false
;;
(* get_obj uri *)