mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 00:34:40 +01:00
parent
9647b67bfd
commit
2402de86b9
1 changed files with 5 additions and 2 deletions
|
@ -36,8 +36,11 @@ impl std::error::Error for Error {}
|
|||
impl std::fmt::Display for Error {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
Error::NoResults => write!(f, "Error: No results were found"),
|
||||
e => write!(f, "Error: {}", e),
|
||||
Self::NoResults => write!(f, "Error: No results were found"),
|
||||
Self::Reqwest(e) => write!(f, "Reqwest Error {}", e),
|
||||
Self::Url(e) => write!(f, "Url Parse Error{}", e),
|
||||
Self::Io(e) => write!(f, "IO Error {}", e),
|
||||
Self::Image(e) => write!(f, "Image Error {}", e),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue