mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
dump failure reason, update comments
This commit is contained in:
parent
5bb0617c57
commit
d717c1c246
1 changed files with 2 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue