imrpove error message

This commit is contained in:
GroovieGermanikus 2024-06-20 13:23:54 +02:00
parent c01fc3efed
commit 04580abbe7
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ pub fn read_tenant_configs(env_vars: Vec<(String, String)>) -> Vec<TenantConfig>
.find(|(v, _)| *v == format!("TENANT{}_ID", tc))
.iter()
.exactly_one()
.expect("need ID")
.expect("need TENANT_X_ID")
.1
.to_string(),
rpc_addr: v
@ -49,7 +49,7 @@ pub fn read_tenant_configs(env_vars: Vec<(String, String)>) -> Vec<TenantConfig>
.find(|(v, _)| *v == format!("TENANT{}_RPC_ADDR", tc))
.iter()
.exactly_one()
.expect("need RPC_ADDR")
.expect("need TENANT_X_RPC_ADDR")
.1
.to_string(),
tx_status_ws_addr: v
@ -57,7 +57,7 @@ pub fn read_tenant_configs(env_vars: Vec<(String, String)>) -> Vec<TenantConfig>
.find(|(v, _)| *v == format!("TENANT{}_TX_STATUS_WS_ADDR", tc))
.iter()
.exactly_one()
.expect("need TX_STATUS_WS_ADDR")
.expect("need TENANT_X_TX_STATUS_WS_ADDR")
.1
.to_string(),
})