match !history with
_::(status::_ as history) ->
history, status
- | [_] -> failwith "retract"
- | _ -> assert false in
+ | [_] -> (prerr_endline "singleton";failwith "retract")
+ | _ -> (prerr_endline "nil"; assert false) in
NCicLibrary.time_travel !status;
history := new_history;
status := new_status;
| "/retract" ->
(try
let body = retract () in
+ prerr_endline "retract OK";
Http_daemon.respond ~code:(`Code 200) ~body outchan
with e ->
(prerr_endline (Printexc.to_string e);