After adding migrate_config_file_version_none_to_2 function by this PR https://github.com/mimblewimble/grin/pull/3634, read_config method is not handling parsing error anymore, panic occurs at toml::from_str function when config file is in wrong format.
After adding
migrate_config_file_version_none_to_2
function by this PR https://github.com/mimblewimble/grin/pull/3634,read_config
method is not handling parsing error anymore, panic occurs attoml::from_str
function when config file is in wrong format.