dump failure reason, update comments

This commit is contained in:
yggverse 2024-11-16 14:24:35 +02:00
parent 5bb0617c57
commit d717c1c246

View File

@ -425,10 +425,7 @@ impl Page {
// Private helpers @TODO move outside // Private helpers @TODO move outside
fn load_gemini(&self, uri: Uri) { fn load_gemini(&self, uri: Uri) {
// Use local namespaces @TODO // Stream wrapper for TLS connections
// use gemini::client::response::
// Wrapper for TLS connection
fn auth( fn auth(
connection: impl IsA<IOStream>, connection: impl IsA<IOStream>,
certificate: Option<TlsCertificate>, certificate: Option<TlsCertificate>,
@ -465,7 +462,7 @@ impl Page {
{ {
Some(pem) => match TlsCertificate::from_pem(&pem) { Some(pem) => match TlsCertificate::from_pem(&pem) {
Ok(certificate) => Some(certificate), Ok(certificate) => Some(certificate),
Err(_) => todo!(), Err(reason) => todo!("{reason}"),
}, },
None => { None => {
// Use unauthorized connection // Use unauthorized connection