Skip to content

Commit

Permalink
Clarify error further
Browse files Browse the repository at this point in the history
  • Loading branch information
algesten committed Jan 31, 2025
1 parent 48fb89b commit e196929
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tls/rustls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ fn build_config(tls_config: &TlsConfig) -> Arc<ClientConfig> {

#[cfg(not(feature = "_ring"))]
fn ring_if_enabled() -> Arc<CryptoProvider> {
panic!("No CryptoProvider for Rustls. Enable feature `rustls` or configure the Agent mangually.");
panic!(
"No CryptoProvider for Rustls. Either enable feature `rustls`, or set process
default using CryptoProvider::set_default(), or configure
TlsConfig::rustls_crypto_provider()"
);
}

let builder = ClientConfig::builder_with_provider(provider.clone())
Expand Down

0 comments on commit e196929

Please sign in to comment.