summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2023-11-10 12:23:31 +0100
committerFxQnLr <[email protected]>2023-11-10 12:23:31 +0100
commit9957da9b182ca209ff8caa8f670d3bd7eff154bb (patch)
treeef5bd866387661cdbfe885e3c36a7f0f386404e2 /src/error.rs
parent344af3ff7c9493b4e2c6eee134b9b341eaabf736 (diff)
downloadwebol-cli-9957da9b182ca209ff8caa8f670d3bd7eff154bb.tar
webol-cli-9957da9b182ca209ff8caa8f670d3bd7eff154bb.tar.gz
webol-cli-9957da9b182ca209ff8caa8f670d3bd7eff154bb.zip
add basic eta
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index 27fc7a6..f15c60a 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,9 +1,10 @@
1use std::fmt::Debug; 1use std::{fmt::Debug, num::ParseIntError};
2 2
3pub enum CliError { 3pub 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),
7 WsResponse, 8 WsResponse,
8} 9}
9 10
@@ -13,6 +14,7 @@ impl Debug for CliError {
13 Self::Reqwest(err) => { err.fmt(f) }, 14 Self::Reqwest(err) => { err.fmt(f) },
14 Self::Config(err) => { err.fmt(f) }, 15 Self::Config(err) => { err.fmt(f) },
15 Self::Serde(err) => { err.fmt(f) }, 16 Self::Serde(err) => { err.fmt(f) },
17 Self::Parse(err) => { err.fmt(f) },
16 Self::WsResponse => { f.write_str("Error in Response") }, 18 Self::WsResponse => { f.write_str("Error in Response") },
17 } 19 }
18 } 20 }