diff options
author | 2025-06-01 13:31:52 +0100 | |
---|---|---|
committer | 2025-06-01 13:31:52 +0100 | |
commit | c6bdf077b82b30f8228b56702bd3ee71d92b3910 (patch) | |
tree | db12501d5d60906b77b19c1395a522967957c715 /filamento/src/error.rs | |
parent | c196aecbe7b3b29fbfff9e997478688e6833b7f3 (diff) | |
download | luz-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.rs | 3 |
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)] |