| "/help" ->
return_html_error "yeah right..." ch
| "/get" ->
- let obj = req#param "object"
- and kind = req#param "kind" in
+ let obj = req#param "object" in
+ let kind = req#param "kind" in
let dbd = SQL.quick_connect db_spec in
begin
match kind with
| Http_types.Param_not_found attr_name ->
return_400 (Printf.sprintf "Parameter '%s' is missing" attr_name) ch
| exc ->
+ prerr_endline (Printexc.to_string exc);
return_html_error ("Uncaught exception: " ^ (Printexc.to_string exc)) ch
let main () =
in
Http_daemon.main d_spec
with Sys.Break -> ()
-in
+;;
main ()