Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
seemantaggarwal committed Feb 23, 2025
1 parent 9dc62db commit b4c89c4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cumulus/polkadot-omni-node/lib/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,10 @@ pub fn run<CliConfig: crate::cli::CliConfig>(cmd_config: RunConfig) -> Result<()
})
},
Some(Subcommand::ChainSpecBuilder(cmd)) => {
if let Err(err) = cmd.run() {
cmd.run().map_err(|err| {
eprintln!("Error executing chain-spec-builder: {}", err);
return Err(sc_cli::Error::Application(err.into()));
}

Ok(())
sc_cli::Error::Application(err.into())
})
},

Some(Subcommand::PurgeChain(cmd)) => {
Expand Down

0 comments on commit b4c89c4

Please sign in to comment.