From a192e9baca9a14beaa9f87c27a63cff96aa41c94 Mon Sep 17 00:00:00 2001 From: FxQnLr Date: Sun, 25 Feb 2024 20:00:38 +0100 Subject: Closes #4. Auth on Websocket. Small stuff --- src/error.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/error.rs') 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 { #[error("parse header: {source}")] InvalidHeaderValue { #[from] - source: InvalidHeaderValue + source: InvalidHeaderValue, }, - #[error("ws")] + #[error("tungstenite: {source}")] + Tungstenite { + #[from] + source: tokio_tungstenite::tungstenite::Error, + }, + #[error("faulty websocket response")] WsResponse, + #[error("authorization failed")] + Authorization, + #[error("Http error status: {0}")] + HttpStatus(u16), } -- cgit v1.2.3