summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2024-02-25 20:00:38 +0100
committerFxQnLr <[email protected]>2024-02-25 20:00:38 +0100
commita192e9baca9a14beaa9f87c27a63cff96aa41c94 (patch)
tree1051968707fc43405ea31fc1878c448c71f6fe34 /src/error.rs
parent465a71b6780921fb7ec19682702cbe864decd212 (diff)
downloadwebol-cli-a192e9baca9a14beaa9f87c27a63cff96aa41c94.tar
webol-cli-a192e9baca9a14beaa9f87c27a63cff96aa41c94.tar.gz
webol-cli-a192e9baca9a14beaa9f87c27a63cff96aa41c94.zip
Closes #4. Auth on Websocket. Small stuff
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 15e4308..1e6eac1 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -27,8 +27,17 @@ pub enum Error {
27 #[error("parse header: {source}")] 27 #[error("parse header: {source}")]
28 InvalidHeaderValue { 28 InvalidHeaderValue {
29 #[from] 29 #[from]
30 source: InvalidHeaderValue 30 source: InvalidHeaderValue,
31 }, 31 },
32 #[error("ws")] 32 #[error("tungstenite: {source}")]
33 Tungstenite {
34 #[from]
35 source: tokio_tungstenite::tungstenite::Error,
36 },
37 #[error("faulty websocket response")]
33 WsResponse, 38 WsResponse,
39 #[error("authorization failed")]
40 Authorization,
41 #[error("Http error status: {0}")]
42 HttpStatus(u16),
34} 43}