aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/src/error.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-06-01 13:31:52 +0100
committerLibravatar cel 🌸 <cel@bunny.garden>2025-06-01 13:31:52 +0100
commitc6bdf077b82b30f8228b56702bd3ee71d92b3910 (patch)
treedb12501d5d60906b77b19c1395a522967957c715 /filamento/src/error.rs
parentc196aecbe7b3b29fbfff9e997478688e6833b7f3 (diff)
downloadluz-c6bdf077b82b30f8228b56702bd3ee71d92b3910.tar.gz
luz-c6bdf077b82b30f8228b56702bd3ee71d92b3910.tar.bz2
luz-c6bdf077b82b30f8228b56702bd3ee71d92b3910.zip
refactor: utilise new jid type safetyHEADmainjid-refactor
Diffstat (limited to 'filamento/src/error.rs')
-rw-r--r--filamento/src/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/filamento/src/error.rs b/filamento/src/error.rs
index f9f9199..721d532 100644
--- a/filamento/src/error.rs
+++ b/filamento/src/error.rs
@@ -3,6 +3,7 @@ use std::{num::TryFromIntError, string::FromUtf8Error, sync::Arc};
use base64::DecodeError;
use image::ImageError;
use jid::JID;
+use jid::JIDError;
use lampada::error::{ActorError, ReadError, WriteError};
use stanza::client::{Stanza, iq::Query};
use thiserror::Error;
@@ -332,6 +333,8 @@ pub enum PresenceError {
MissingFrom,
#[error("stanza error: {0:?}")]
StanzaError(Option<stanza::client::error::Error>),
+ #[error("received subscription request from a non-bare jid")]
+ InvalidSubscriptionRequest(#[from] JIDError),
}
#[derive(Debug, Error, Clone)]