chore(signer): log pairing start and session failures to stderr
Pairing failures were invisible: fail() wrote nothing and the only success-path trace was the URI. Backend stderr is captured by Electron, so a stalled handshake is now diagnosable from /tmp logs.
This commit is contained in:
parent
dc58f3889f
commit
9cfab4bce6
1 changed files with 2 additions and 0 deletions
|
|
@ -790,6 +790,8 @@ impl Nip46ClientSigner {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn fail(&self, message: impl Into<String>) {
|
fn fail(&self, message: impl Into<String>) {
|
||||||
|
let message = message.into();
|
||||||
|
eprintln!("[nip46] session failed: {message}");
|
||||||
if let Ok(mut inner) = self.inner.try_lock() {
|
if let Ok(mut inner) = self.inner.try_lock() {
|
||||||
inner.phase = Nip46Phase::Error(message.into());
|
inner.phase = Nip46Phase::Error(message.into());
|
||||||
inner.task = None;
|
inner.task = None;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue