mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +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
|
|
@ -2,7 +2,7 @@ use std::fmt::{Display, Formatter, Result};
|
|||
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
Connect(glib::Error),
|
||||
Connect(gio::NetworkAddress, glib::Error),
|
||||
Connection(gio::SocketConnection, crate::client::connection::Error),
|
||||
NetworkAddress(crate::client::connection::request::Error),
|
||||
Request(crate::client::connection::Error),
|
||||
|
|
@ -11,7 +11,7 @@ pub enum Error {
|
|||
impl Display for Error {
|
||||
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||
match self {
|
||||
Self::Connect(e) => {
|
||||
Self::Connect(_, e) => {
|
||||
write!(f, "Connect error: {e}")
|
||||
}
|
||||
Self::Connection(_, e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue