summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2023-11-17 11:18:31 +0100
committerGitHub <[email protected]>2023-11-17 11:18:31 +0100
commit48190366ac94888811dd4b0b8e6532b35f1a9d10 (patch)
tree8689660d75d0e45af460ed3d144b5a010289c0be /src/error.rs
parent8fab2e7c3a38a91c8f5549b639e7f2ac4ae1a420 (diff)
parent93de8742961287cb9cfd08e68c8afa2347585a73 (diff)
downloadwebol-cli-48190366ac94888811dd4b0b8e6532b35f1a9d10.tar
webol-cli-48190366ac94888811dd4b0b8e6532b35f1a9d10.tar.gz
webol-cli-48190366ac94888811dd4b0b8e6532b35f1a9d10.zip
Merge pull request #1 from FxQnLr/eta
Eta
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index d35991b..f15c60a 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,9 +1,11 @@
1use std::fmt::Debug; 1use std::{fmt::Debug, num::ParseIntError};
2 2
3pub enum CliError { 3pub enum CliError {
4 Reqwest(reqwest::Error), 4 Reqwest(reqwest::Error),
5 Config(config::ConfigError), 5 Config(config::ConfigError),
6 Serde(serde_json::Error), 6 Serde(serde_json::Error),
7 Parse(ParseIntError),
8 WsResponse,
7} 9}
8 10
9impl Debug for CliError { 11impl Debug for CliError {
@@ -12,6 +14,8 @@ impl Debug for CliError {
12 Self::Reqwest(err) => { err.fmt(f) }, 14 Self::Reqwest(err) => { err.fmt(f) },
13 Self::Config(err) => { err.fmt(f) }, 15 Self::Config(err) => { err.fmt(f) },
14 Self::Serde(err) => { err.fmt(f) }, 16 Self::Serde(err) => { err.fmt(f) },
17 Self::Parse(err) => { err.fmt(f) },
18 Self::WsResponse => { f.write_str("Error in Response") },
15 } 19 }
16 } 20 }
17} 21}