mirror of https://github.com/nucypher/nucypher.git
Improve exception message when RPC endpoints for a chain are available but can't be properly configured.
parent
f340e3b153
commit
967b272a28
|
@ -53,7 +53,7 @@ class ConditionProviderManager:
|
|||
if not iterator_returned_at_least_one:
|
||||
raise NoConnectionToChain(
|
||||
chain=chain_id,
|
||||
message=f"Problematic provider connections for chain ID {chain_id}",
|
||||
message=f"Problematic provider endpoints for chain ID {chain_id}",
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
|
|
@ -92,7 +92,7 @@ def test_rpc_condition_evaluation_invalid_provider_for_chain(
|
|||
condition_providers = ConditionProviderManager({new_chain: [testerchain.provider]})
|
||||
with pytest.raises(
|
||||
NoConnectionToChain,
|
||||
match=f"Problematic provider connections for chain ID {new_chain}",
|
||||
match=f"Problematic provider endpoints for chain ID {new_chain}",
|
||||
):
|
||||
_ = rpc_condition.verify(providers=condition_providers, **context)
|
||||
|
||||
|
|
Loading…
Reference in New Issue