summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
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 }