summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorfx <[email protected]>2023-10-19 09:39:28 +0200
committerfx <[email protected]>2023-10-19 09:39:28 +0200
commiteb0a092fc53964e02a09da2d92a1f8a3042a1360 (patch)
tree4f5bdf69e4973dad81506a60760417c1132e6e75 /src/error.rs
parent527d2c7abc1f83f76342fa21a8d4f417582d53a6 (diff)
downloadwebol-cli-eb0a092fc53964e02a09da2d92a1f8a3042a1360.tar
webol-cli-eb0a092fc53964e02a09da2d92a1f8a3042a1360.tar.gz
webol-cli-eb0a092fc53964e02a09da2d92a1f8a3042a1360.zip
added error message on server != 200
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 9aa8c08..d35991b 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -4,7 +4,6 @@ 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 // Cli(Box<dyn std::error::Error>),
8} 7}
9 8
10impl Debug for CliError { 9impl Debug for CliError {
@@ -13,7 +12,6 @@ impl Debug for CliError {
13 Self::Reqwest(err) => { err.fmt(f) }, 12 Self::Reqwest(err) => { err.fmt(f) },
14 Self::Config(err) => { err.fmt(f) }, 13 Self::Config(err) => { err.fmt(f) },
15 Self::Serde(err) => { err.fmt(f) }, 14 Self::Serde(err) => { err.fmt(f) },
16 // Self::Cli(err) => {err.fmt(f)},
17 } 15 }
18 } 16 }
19} 17}