slightly adapted impossible error for validator_client (lighthouse-252)

This commit is contained in:
thojest 2019-03-01 18:23:25 +01:00
parent f0ea691208
commit ed7a081008

View File

@ -78,7 +78,10 @@ fn main() {
"foundation" => config.spec = ChainSpec::foundation(),
"few_validators" => config.spec = ChainSpec::few_validators(),
// Should be impossible
_ => error!(log, "Invalid spec defined"; "spec" => format!("{:?}", config.spec)),
_ => {
error!(log, "Invalid ChainSpec defined"; "spec" => spec_str);
return;
}
};
}