Fix compilation (#2708)

This commit is contained in:
Pierre Krieger
2019-05-28 18:01:20 +02:00
committed by André Silva
parent 1df8ac9751
commit 643e309411
@@ -107,7 +107,8 @@ where
<<RA as RuntimeAdapter>::Block as BlockT>::Hash: From<primitives::H256>,
{
if *factory_state.mode() != Mode::MasterToNToM && factory_state.rounds() > RA::Number::one() {
return Err("The factory can only be used with rounds set to 1 in this mode.".into());
let msg = "The factory can only be used with rounds set to 1 in this mode.".into();
return Err(cli::error::Error::Input(msg));
}
let client = new_client::<F>(&config)?;