Description
If a record field is expected in a config field, and an array is received instead, it would be great to get a more detailed and informative error message, rather than a hard-to-understand error being thrown.
credentials:
users:
me:
passwd:
plain: secret
grant: [super]
groups:
g:
replicasets:
r:
instances:
i:
iproto: [1,2,3]
$ tarantool --name i --config config.yaml
LuajitError: [cluster_config] groups.g.replicasets.r.instances.i.iproto: Unexpected field "1"
fatal error, exiting the event loop
The goal is to provide a detailed, user-friendly error message for example
LuajitError: [cluster_config] groups.g.replicasets.r.instances.i.iproto: Unexpected data: Expected "record", got "array": [1, 2, 3]
fatal error, exiting the event loop
This issue is a continuation of issue #10241
Corresponds to TNTP-240.