Client: emit exit 1 when operation receipt is not found

This commit is contained in:
Pietro Abate 2019-01-30 20:50:39 +01:00 committed by Raphaël Proust
parent cb0b8f63b1
commit 7c59d32a4b

View File

@ -541,8 +541,7 @@ let display_receipt_for_operation
get_operation_from_block cctxt ~chain predecessors operation_hash get_operation_from_block cctxt ~chain predecessors operation_hash
>>=? function >>=? function
| None -> | None ->
cctxt#message "Couldn't find operation" >>= fun () -> failwith "Couldn't find operation"
return_unit
| Some op -> | Some op ->
cctxt#message "%a" pp_operation op >>= fun () -> cctxt#message "%a" pp_operation op >>= fun () ->
return_unit return_unit