File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,9 @@ impl MockServerBuilder {
128128 . await
129129 }
130130
131- /// Finalise the builder to get an instance of a [`BareMockServer`].
131+ /// Finalise the builder to get an HTTPS instance of a [`BareMockServer`].
132+ ///
133+ /// Panics if DER data the `certs` is invalid.
132134 #[ cfg( feature = "tls" ) ]
133135 pub ( super ) async fn build_bare_https ( self , certs : MockServerTlsConfig ) -> BareMockServer {
134136 use hyper_server:: tls_rustls:: RustlsAcceptor ;
@@ -149,7 +151,7 @@ impl MockServerBuilder {
149151 certs. server_keypair_der ,
150152 )
151153 . await
152- . expect ( "Failed to build RustlsConfig " ) ;
154+ . expect ( "Failed to parse TLS configuration from DER data " ) ;
153155
154156 BareMockServer :: start (
155157 listener,
You can’t perform that action at this time.
0 commit comments