Fix incorrect error message in ClientBuilder (#888)

* Fix incorrect error message in ClientBuilder

* Run cargo fmt --all
This commit is contained in:
Akihito Nakano 2020-03-04 14:37:13 +09:00 committed by GitHub
parent ca0314ee55
commit 12d9b42188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,9 @@ where
"beacon_chain_start_method requires a store migrator".to_string()
})?;
let context = runtime_context
.ok_or_else(|| "beacon_chain_start_method requires a log".to_string())?
.ok_or_else(|| {
"beacon_chain_start_method requires a runtime context".to_string()
})?
.service_context("beacon".into());
let spec = chain_spec
.ok_or_else(|| "beacon_chain_start_method requires a chain spec".to_string())?;