mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
dump failure reason, update comments
This commit is contained in:
parent
5bb0617c57
commit
d717c1c246
@ -425,10 +425,7 @@ impl Page {
|
||||
|
||||
// Private helpers @TODO move outside
|
||||
fn load_gemini(&self, uri: Uri) {
|
||||
// Use local namespaces @TODO
|
||||
// use gemini::client::response::
|
||||
|
||||
// Wrapper for TLS connection
|
||||
// Stream wrapper for TLS connections
|
||||
fn auth(
|
||||
connection: impl IsA<IOStream>,
|
||||
certificate: Option<TlsCertificate>,
|
||||
@ -465,7 +462,7 @@ impl Page {
|
||||
{
|
||||
Some(pem) => match TlsCertificate::from_pem(&pem) {
|
||||
Ok(certificate) => Some(certificate),
|
||||
Err(_) => todo!(),
|
||||
Err(reason) => todo!("{reason}"),
|
||||
},
|
||||
None => {
|
||||
// Use unauthorized connection
|
||||
|
Loading…
x
Reference in New Issue
Block a user