diff --git a/src/client/connection/response/redirect.rs b/src/client/connection/response/redirect.rs index b0856be..8e1cb24 100644 --- a/src/client/connection/response/redirect.rs +++ b/src/client/connection/response/redirect.rs @@ -57,7 +57,7 @@ impl Redirect { .parse_relative(self.target(), UriFlags::NONE) { Ok(absolute) => Ok(absolute), - Err(e) => Err(Error::Glib(e)), + Err(e) => Err(Error::Uri(e)), } } diff --git a/src/client/connection/response/redirect/error.rs b/src/client/connection/response/redirect/error.rs index 029abf6..acee073 100644 --- a/src/client/connection/response/redirect/error.rs +++ b/src/client/connection/response/redirect/error.rs @@ -5,7 +5,7 @@ use std::{ #[derive(Debug)] pub enum Error { - Glib(glib::Error), + Uri(glib::Error), Protocol, Target, Utf8Error(Utf8Error), @@ -14,8 +14,8 @@ pub enum Error { impl Display for Error { fn fmt(&self, f: &mut Formatter) -> Result { match self { - Self::Glib(e) => { - write!(f, "Glib error: {e}") + Self::Uri(e) => { + write!(f, "URI error: {e}") } Self::Utf8Error(e) => { write!(f, "UTF-8 error: {e}")