From 7c59d32a4b6daa32f750a35fd814b2a256c3abc4 Mon Sep 17 00:00:00 2001 From: Pietro Abate Date: Wed, 30 Jan 2019 20:50:39 +0100 Subject: [PATCH] Client: emit exit 1 when operation receipt is not found --- src/proto_alpha/lib_client/client_proto_context.ml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/proto_alpha/lib_client/client_proto_context.ml b/src/proto_alpha/lib_client/client_proto_context.ml index 39339d9f6..8bb80ad30 100644 --- a/src/proto_alpha/lib_client/client_proto_context.ml +++ b/src/proto_alpha/lib_client/client_proto_context.ml @@ -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