diff --git a/src/command.rs b/src/command.rs index b77fea91d6..60fcd8fa1e 100644 --- a/src/command.rs +++ b/src/command.rs @@ -536,9 +536,12 @@ impl CliConfiguration for RelayChainCli { } fn base_path(&self) -> Result> { - self.shared_params() + Ok(self + .shared_params() .base_path() - .or_else(|_| Ok(self.base_path.clone().map(Into::into))) + .ok() + .flatten() + .or_else(|| self.base_path.clone().map(Into::into))) } fn role(&self, is_dev: bool) -> Result {