mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
refactor: better log message for failed QR scan
It did not interpolate the `{prefix}`,
it just printed it in plain text.
This commit is contained in:
@@ -539,7 +539,7 @@ async fn decode_ideltachat(context: &Context, prefix: &str, qr: &str) -> Result<
|
|||||||
let qr = qr.replacen('&', "#", 1);
|
let qr = qr.replacen('&', "#", 1);
|
||||||
decode_openpgp(context, &qr)
|
decode_openpgp(context, &qr)
|
||||||
.await
|
.await
|
||||||
.context("failed to decode {prefix} QR code")
|
.context(format!("failed to decode {prefix} QR code"))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// scheme: `DCACCOUNT:https://example.org/new_email?t=1w_7wDjgjelxeX884x96v3`
|
/// scheme: `DCACCOUNT:https://example.org/new_email?t=1w_7wDjgjelxeX884x96v3`
|
||||||
|
|||||||
Reference in New Issue
Block a user