remote-helper: Fix key-mismatch error

The error is about the remote namespace, so that's the one we should
include.
This commit is contained in:
cloudhead 2024-06-30 10:28:23 +02:00
parent 92c9e21873
commit 38592955b2
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ pub fn run(
let nid = url.namespace.ok_or(Error::NoKey).and_then(|ns| { let nid = url.namespace.ok_or(Error::NoKey).and_then(|ns| {
(profile.public_key == ns) (profile.public_key == ns)
.then_some(ns) .then_some(ns)
.ok_or(Error::KeyMismatch(profile.public_key.into())) .ok_or(Error::KeyMismatch(ns.into()))
})?; })?;
let signer = profile.signer()?; let signer = profile.signer()?;
let mut line = String::new(); let mut line = String::new();