diff --git a/src/cmd/src/datanode.rs b/src/cmd/src/datanode.rs index c21e03499973..c980f7181109 100644 --- a/src/cmd/src/datanode.rs +++ b/src/cmd/src/datanode.rs @@ -143,6 +143,7 @@ impl StartCommand { self.config_file.as_deref(), self.env_prefix.as_ref(), ) + .map_err(Box::new) .context(LoadLayeredConfigSnafu)?, )?, ))) diff --git a/src/cmd/src/error.rs b/src/cmd/src/error.rs index 7a902c8aed1d..af9bdaf2b07d 100644 --- a/src/cmd/src/error.rs +++ b/src/cmd/src/error.rs @@ -209,7 +209,7 @@ pub enum Error { #[snafu(display("Failed to load layered config"))] LoadLayeredConfig { #[snafu(source)] - source: common_config::error::Error, + source: Box, #[snafu(implicit)] location: Location, }, diff --git a/src/cmd/src/frontend.rs b/src/cmd/src/frontend.rs index 4297553304f8..654e4130e82c 100644 --- a/src/cmd/src/frontend.rs +++ b/src/cmd/src/frontend.rs @@ -163,6 +163,7 @@ impl StartCommand { self.config_file.as_deref(), self.env_prefix.as_ref(), ) + .map_err(Box::new) .context(LoadLayeredConfigSnafu)?, )?, ))) diff --git a/src/cmd/src/metasrv.rs b/src/cmd/src/metasrv.rs index f6e7a0c3c472..4de723aa53f5 100644 --- a/src/cmd/src/metasrv.rs +++ b/src/cmd/src/metasrv.rs @@ -136,6 +136,7 @@ impl StartCommand { self.config_file.as_deref(), self.env_prefix.as_ref(), ) + .map_err(Box::new) .context(LoadLayeredConfigSnafu)?, )?, ))) diff --git a/src/cmd/src/standalone.rs b/src/cmd/src/standalone.rs index 90e395983b4f..df95868fa979 100644 --- a/src/cmd/src/standalone.rs +++ b/src/cmd/src/standalone.rs @@ -295,6 +295,7 @@ impl StartCommand { self.config_file.as_deref(), self.env_prefix.as_ref(), ) + .map_err(Box::new) .context(LoadLayeredConfigSnafu)?, )?, )))