If there is an error parsing the genesis file in embed_genesis, print the exception before exiting.

This commit is contained in:
Eric Frias 2017-06-01 09:52:55 -04:00
parent 7f44b793c1
commit d05e5552af

View file

@ -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
{