`Cant_parse_protocol_data` and other protocol errors not registered
In several files of the proto_alpha/lib_protocol/src
(such as src/proto_alpha/lib_protocol/src/block_header_repr.ml
), the error
type is extended with constructors (such as Cant_parse_protocol_data
) without registering them.
A good approximation of the files in which this happens is found with
$ grep -L "register_error_kind" $(grep -l "type error +=" src/proto_alpha/lib_protocol/src/**/*.ml)
src/proto_alpha/lib_protocol/src/alpha_context.ml
src/proto_alpha/lib_protocol/src/amendment.ml
src/proto_alpha/lib_protocol/src/block_header_repr.ml
src/proto_alpha/lib_protocol/src/constants_repr.ml
src/proto_alpha/lib_protocol/src/fitness_repr.ml
src/proto_alpha/lib_protocol/src/period_repr.ml
src/proto_alpha/lib_protocol/src/raw_level_repr.ml
src/proto_alpha/lib_protocol/src/script_tc_errors.ml
src/proto_alpha/lib_protocol/src/seed_repr.ml
src/proto_alpha/lib_protocol/src/time_repr.ml
Note: there might be other parts of the source code that have the same issue.