mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
return NetworkAddress on Error::Connect
This commit is contained in:
parent
cc1018224a
commit
e878fe4ba2
2 changed files with 3 additions and 3 deletions
|
|
@ -96,7 +96,7 @@ impl Client {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(e) => callback(Err(Error::Connect(e))),
|
Err(e) => callback(Err(Error::Connect(network_address, e))),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ use std::fmt::{Display, Formatter, Result};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
Connect(glib::Error),
|
Connect(gio::NetworkAddress, glib::Error),
|
||||||
Connection(gio::SocketConnection, crate::client::connection::Error),
|
Connection(gio::SocketConnection, crate::client::connection::Error),
|
||||||
NetworkAddress(crate::client::connection::request::Error),
|
NetworkAddress(crate::client::connection::request::Error),
|
||||||
Request(crate::client::connection::Error),
|
Request(crate::client::connection::Error),
|
||||||
|
|
@ -11,7 +11,7 @@ pub enum Error {
|
||||||
impl Display for Error {
|
impl Display for Error {
|
||||||
fn fmt(&self, f: &mut Formatter) -> Result {
|
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||||
match self {
|
match self {
|
||||||
Self::Connect(e) => {
|
Self::Connect(_, e) => {
|
||||||
write!(f, "Connect error: {e}")
|
write!(f, "Connect error: {e}")
|
||||||
}
|
}
|
||||||
Self::Connection(_, e) => {
|
Self::Connection(_, e) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue