diff options
author | FxQnLr <[email protected]> | 2023-11-07 12:58:12 +0100 |
---|---|---|
committer | FxQnLr <[email protected]> | 2023-11-07 12:58:12 +0100 |
commit | 344af3ff7c9493b4e2c6eee134b9b341eaabf736 (patch) | |
tree | a6b0af984ac4e0d799ae6991635ca1980872f1ce /src/error.rs | |
parent | f4d3d921460b606a9ff6686c9bb9a79bf546f264 (diff) | |
download | webol-cli-344af3ff7c9493b4e2c6eee134b9b341eaabf736.tar webol-cli-344af3ff7c9493b4e2c6eee134b9b341eaabf736.tar.gz webol-cli-344af3ff7c9493b4e2c6eee134b9b341eaabf736.zip |
add ping support and readable output
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index d35991b..27fc7a6 100644 --- a/src/error.rs +++ b/src/error.rs | |||
@@ -4,6 +4,7 @@ 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 | WsResponse, | ||
7 | } | 8 | } |
8 | 9 | ||
9 | impl Debug for CliError { | 10 | impl Debug for CliError { |
@@ -12,6 +13,7 @@ impl Debug for CliError { | |||
12 | Self::Reqwest(err) => { err.fmt(f) }, | 13 | Self::Reqwest(err) => { err.fmt(f) }, |
13 | Self::Config(err) => { err.fmt(f) }, | 14 | Self::Config(err) => { err.fmt(f) }, |
14 | Self::Serde(err) => { err.fmt(f) }, | 15 | Self::Serde(err) => { err.fmt(f) }, |
16 | Self::WsResponse => { f.write_str("Error in Response") }, | ||
15 | } | 17 | } |
16 | } | 18 | } |
17 | } | 19 | } |