|
@@ -33,7 +33,7 @@ pub async fn run_client(
|
|
|
shutdown_rx: broadcast::Receiver<bool>,
|
|
shutdown_rx: broadcast::Receiver<bool>,
|
|
|
service_rx: mpsc::Receiver<ServiceChange>,
|
|
service_rx: mpsc::Receiver<ServiceChange>,
|
|
|
) -> Result<()> {
|
|
) -> Result<()> {
|
|
|
- let config = config.client.ok_or(anyhow!(
|
|
|
|
|
|
|
+ let config = config.client.ok_or_else(|| anyhow!(
|
|
|
"Try to run as a client, but the configuration is missing. Please add the `[client]` block"
|
|
"Try to run as a client, but the configuration is missing. Please add the `[client]` block"
|
|
|
))?;
|
|
))?;
|
|
|
|
|
|