Client: improve logging on protocol injection
This commit is contained in:
parent
b09e89f9f3
commit
4026d6ab58
@ -57,7 +57,7 @@ let commands () =
|
|||||||
Lwt_utils_unix.Protocol.read_dir dirname >>=? fun (_hash, proto) ->
|
Lwt_utils_unix.Protocol.read_dir dirname >>=? fun (_hash, proto) ->
|
||||||
Shell_services.Injection.protocol cctxt proto >>= function
|
Shell_services.Injection.protocol cctxt proto >>= function
|
||||||
| Ok hash ->
|
| Ok hash ->
|
||||||
cctxt#message "Injected protocol %a successfully" Protocol_hash.pp_short hash >>= fun () ->
|
cctxt#message "Injected protocol %a successfully" Protocol_hash.pp hash >>= fun () ->
|
||||||
return_unit
|
return_unit
|
||||||
| Error err ->
|
| Error err ->
|
||||||
cctxt#error "Error while injecting protocol from %s: %a"
|
cctxt#error "Error while injecting protocol from %s: %a"
|
||||||
|
Loading…
Reference in New Issue
Block a user