mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
securejoin: display error reason if there is any
This commit is contained in:
@@ -253,17 +253,17 @@ async fn get_self_fingerprint(context: &Context) -> Option<Fingerprint> {
|
|||||||
|
|
||||||
#[derive(Debug, thiserror::Error)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
pub enum JoinError {
|
pub enum JoinError {
|
||||||
#[error("Unknown QR-code")]
|
#[error("Unknown QR-code: {0}")]
|
||||||
QrCode(#[from] QrError),
|
QrCode(#[from] QrError),
|
||||||
#[error("A setup-contact/secure-join protocol is already running")]
|
#[error("A setup-contact/secure-join protocol is already running")]
|
||||||
AlreadyRunning,
|
AlreadyRunning,
|
||||||
#[error("An \"ongoing\" process is already running")]
|
#[error("An \"ongoing\" process is already running")]
|
||||||
OngoingRunning,
|
OngoingRunning,
|
||||||
#[error("Failed to send handshake message")]
|
#[error("Failed to send handshake message: {0}")]
|
||||||
SendMessage(#[from] SendMsgError),
|
SendMessage(#[from] SendMsgError),
|
||||||
// Note that this can currently only occur if there is a bug in the QR/Lot code as this
|
// Note that this can currently only occur if there is a bug in the QR/Lot code as this
|
||||||
// is supposed to create a contact for us.
|
// is supposed to create a contact for us.
|
||||||
#[error("Unknown contact (this is a bug)")]
|
#[error("Unknown contact (this is a bug): {0}")]
|
||||||
UnknownContact(#[source] anyhow::Error),
|
UnknownContact(#[source] anyhow::Error),
|
||||||
// Note that this can only occur if we failed to create the chat correctly.
|
// Note that this can only occur if we failed to create the chat correctly.
|
||||||
#[error("Ongoing sender dropped (this is a bug)")]
|
#[error("Ongoing sender dropped (this is a bug)")]
|
||||||
|
|||||||
Reference in New Issue
Block a user