(* EXPERIMENTAL: pretty print the object in natural language *)
(try !object_declaration_hook uri obj
with exc ->
- prerr_endline "Error: object_declaration_hook failed");
+ prerr_endline ("Error: object_declaration_hook failed"^
+ Printexc.to_string exc));
try
HLog.message
(Printf.sprintf "%s defined" (UriManager.string_of_uri uri))