Improve error message when `extraData` misnamed

Description

From gitter (June 21), the following error message is received when `extraData` is misnamed (`extra_data` in this case):

After running `pantheon-1.1.1/bin/pantheon --genesis-file=genesis.json`, Pantheon starts but then quits with the message `Cannot enter a lists, input is fully consumed (at bytes 0-0: [])`

 

Improve the error message when a MANDATORY input is missing.
(Source is a genesis file)

Scenario:
IBFT 2.0 genesis file contains:
"extra_data": "0xf83ea00000000000000000000000000000000000000000000000000000000000000000d594c2ab482b506de561668e07f04547232a72897daf808400000000c0", "gasLimit": "0x47b760"

Expected result:
Clear message indicating a mandatory option (extraData) is missing.

Current result:
Unclear message:
Cannot enter a lists, input is fully consumed (at bytes 0-0: [])

Environment

None

Assignee

Kasper Ziemianek

Reporter

Madeline Murray

Refinement State

Not Started

Priority

P3
Configure