summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2023-11-07 12:58:12 +0100
committerFxQnLr <[email protected]>2023-11-07 12:58:12 +0100
commit344af3ff7c9493b4e2c6eee134b9b341eaabf736 (patch)
treea6b0af984ac4e0d799ae6991635ca1980872f1ce /src/error.rs
parentf4d3d921460b606a9ff6686c9bb9a79bf546f264 (diff)
downloadwebol-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.rs2
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
9impl Debug for CliError { 10impl 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}