If there is an error parsing the genesis file in embed_genesis, print the exception before exiting.
This commit is contained in:
parent
7f44b793c1
commit
d05e5552af
1 changed files with 9 additions and 1 deletions
|
|
@ -166,7 +166,15 @@ struct egenesis_info
|
|||
else if( genesis_json.valid() )
|
||||
{
|
||||
// If genesis not exist, generate from genesis_json
|
||||
genesis = fc::json::from_string( *genesis_json ).as< genesis_state_type >();
|
||||
try
|
||||
{
|
||||
genesis = fc::json::from_string( *genesis_json ).as< genesis_state_type >();
|
||||
}
|
||||
catch (const fc::exception& e)
|
||||
{
|
||||
edump((e));
|
||||
throw;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue