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
>>=? function
| None ->
cctxt#message "Couldn't find operation" >>= fun () ->
return_unit
failwith "Couldn't find operation"
| Some op ->
cctxt#message "%a" pp_operation op >>= fun () ->
return_unit