Proto: avoid conflict between client errors
This commit is contained in:
parent
8b01c52529
commit
9b9c3a1bee
@ -1092,6 +1092,7 @@ let rec unexpand_rec expr =
|
|||||||
|
|
||||||
let () =
|
let () =
|
||||||
let open Data_encoding in
|
let open Data_encoding in
|
||||||
|
let open Proto_alpha in
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"michelson.macros.unexpected_annotation"
|
~id:"michelson.macros.unexpected_annotation"
|
||||||
|
@ -66,3 +66,12 @@ class wrap_full (t : Client_context.full) : full = object
|
|||||||
(t :> RPC_context.t)
|
(t :> RPC_context.t)
|
||||||
Shell_services.Blocks.path
|
Shell_services.Blocks.path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
let register_error_kind
|
||||||
|
category ~id ~title ~description ?pp
|
||||||
|
encoding from_error to_error =
|
||||||
|
let id = "client." ^ Name.name ^ "." ^ id in
|
||||||
|
register_error_kind
|
||||||
|
category ~id ~title ~description ?pp
|
||||||
|
encoding from_error to_error
|
||||||
|
|
||||||
|
@ -37,3 +37,11 @@ end
|
|||||||
include Proto
|
include Proto
|
||||||
|
|
||||||
module M = Alpha_environment.Lift(Main)
|
module M = Alpha_environment.Lift(Main)
|
||||||
|
|
||||||
|
let register_error_kind
|
||||||
|
category ~id ~title ~description ?pp
|
||||||
|
encoding from_error to_error =
|
||||||
|
let id = "client." ^ Name.name ^ "." ^ id in
|
||||||
|
register_error_kind
|
||||||
|
category ~id ~title ~description ?pp
|
||||||
|
encoding from_error to_error
|
||||||
|
Loading…
Reference in New Issue
Block a user