Skip to content

Commit

Permalink
refactor: better log message for failed QR scan
Browse files Browse the repository at this point in the history
It did not interpolate the `{prefix}`,
it just printed it in plain text.
  • Loading branch information
WofWca authored and iequidoo committed Sep 30, 2024
1 parent 78a0d75 commit 9c931c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ async fn decode_ideltachat(context: &Context, prefix: &str, qr: &str) -> Result<
let qr = qr.replacen('&', "#", 1);
decode_openpgp(context, &qr)
.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`
Expand Down

0 comments on commit 9c931c2

Please sign in to comment.