diff options
author | FxQnLr <[email protected]> | 2023-11-17 11:18:31 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-17 11:18:31 +0100 |
commit | 48190366ac94888811dd4b0b8e6532b35f1a9d10 (patch) | |
tree | 8689660d75d0e45af460ed3d144b5a010289c0be /src/error.rs | |
parent | 8fab2e7c3a38a91c8f5549b639e7f2ac4ae1a420 (diff) | |
parent | 93de8742961287cb9cfd08e68c8afa2347585a73 (diff) | |
download | webol-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.rs | 6 |
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 @@ | |||
1 | use std::fmt::Debug; | 1 | use std::{fmt::Debug, num::ParseIntError}; |
2 | 2 | ||
3 | pub enum CliError { | 3 | pub 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 | ||
9 | impl Debug for CliError { | 11 | impl 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 | } |