mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20: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
|
// 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user