Skip to content

Commit 044d9cf

Browse files
committed
fix: Fail receive_imf to not tombstone Iroh-Node-Addr message if webxdc instance isn't found
1 parent 4be4114 commit 044d9cf

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/receive_imf.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::iter;
66
use std::str::FromStr as _;
77
use std::sync::LazyLock;
88

9-
use anyhow::{Context as _, Result, ensure};
9+
use anyhow::{Context as _, Result, bail, ensure};
1010
use deltachat_contact_tools::{
1111
ContactAddress, addr_cmp, addr_normalize, may_be_valid_addr, sanitize_bidi_characters,
1212
sanitize_single_line,
@@ -2058,9 +2058,8 @@ async fn add_parts(
20582058
}
20592059
}
20602060
None => {
2061-
warn!(
2062-
context,
2063-
"Cannot add iroh peer because WebXDC instance does not exist."
2061+
bail!(
2062+
"Cannot add iroh peer because WebXDC instance {in_reply_to} does not exist"
20642063
);
20652064
}
20662065
},

0 commit comments

Comments
 (0)