Signed-off-by: Thomas Gazagnaire <thomas.gazagnaire@citrix.com>
let module PP = Camlp4.Printers.OCaml.Make(Syntax) in
let pp = new PP.printer () in
Format.eprintf "Type %a@. not supported.\n%!" pp#ctyp ty;
- failwith "type_not_supported"
+ failwith "type not supported by rpc-light"
let apply _loc fn fn_i create id modules t a =
let args = decompose_args _loc a in
let rec of_xml ?callback accu input =
try value (map_tags (basic_types ?callback accu)) input
with
- | Xmlm.Error ((a,b), e) ->
+ | Xmlm.Error ((a,b), e) as exn->
eprintf "Characters %i--%i: %s\n%!" a b (Xmlm.error_message e);
- exit (-1)
- | e -> eprintf "%s\n%!" (Printexc.to_string e); exit (-1)
+ raise exn
+ | e ->
+ eprintf "%s\n%!" (Printexc.to_string e);
+ raise e
and basic_types ?callback accu input = function
| "int"