Unverified Commit 60e72111 authored by Ashley's avatar Ashley
Browse files

Clean up browser validation worker error

parent f20ae654
......@@ -150,12 +150,12 @@ pub fn run<W>(worker: W, version: cli::VersionInfo) -> error::Result<()> where
Ok(service::new_chain_ops(config)?), load_spec),
cli::ParseAndPrepare::CustomCommand(PolkadotSubCommands::ValidationWorker(args)) => {
if cfg!(feature = "browser") {
error!("Cannot run validation worker in browser");
Err(error::Error::Input("Cannot run validation worker in browser".into()))
} else {
#[cfg(not(feature = "browser"))]
service::run_validation_worker(&args.mem_id)?;
Ok(())
}
Ok(())
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment