diff options
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 | } |