From 214055ac62d330a884eb07227ac58cd26c31b1cf Mon Sep 17 00:00:00 2001 From: Pietro Abate Date: Mon, 12 Nov 2018 17:42:48 +0100 Subject: [PATCH] RPC: print uri in RPC_context.Not_found --- src/lib_rpc/RPC_context.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib_rpc/RPC_context.ml b/src/lib_rpc/RPC_context.ml index 6269153d8..e540ff1b8 100644 --- a/src/lib_rpc/RPC_context.ml +++ b/src/lib_rpc/RPC_context.ml @@ -180,8 +180,8 @@ let () = (obj2 (req "method" RPC_service.meth_encoding) (req "uri" uri_encoding)) - ~pp:(fun ppf (_meth, _uri) -> - Format.fprintf ppf "Did not find service") + ~pp:(fun ppf (meth, uri) -> + Format.fprintf ppf "Did not find service: %s %a" (RPC_service.string_of_meth meth) Uri.pp_hum uri) (function Not_found { meth ; uri } -> Some (meth, uri) | _ -> None) (fun (meth, uri) -> Not_found { meth ; uri })