From ed7a0810080475fabffdd7cd01e35edfabddb049 Mon Sep 17 00:00:00 2001 From: thojest Date: Fri, 1 Mar 2019 18:23:25 +0100 Subject: [PATCH] slightly adapted impossible error for validator_client (lighthouse-252) --- validator_client/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/validator_client/src/main.rs b/validator_client/src/main.rs index e9a7b15a3..f81c3e40c 100644 --- a/validator_client/src/main.rs +++ b/validator_client/src/main.rs @@ -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; + } }; }