debug: surface ssh error details in voice test

This commit is contained in:
Peter Steinberger
2025-12-07 15:07:56 +01:00
parent a3bf0d6002
commit 76559b352b
2 changed files with 2 additions and 2 deletions

View File

@@ -257,7 +257,7 @@ struct DebugSettings: View {
self.debugSendStatus = "Sent via \(config.target). Await WhatsApp reply."
self.debugSendError = nil
case let .failure(error):
self.debugSendStatus = nil
self.debugSendStatus = "Target: \(config.target)" + (config.identityPath.isEmpty ? "" : " · identity: \(config.identityPath)")
self.debugSendError = error.localizedDescription
}
}

View File

@@ -95,7 +95,7 @@ enum VoiceWakeForwarder {
case let .nonZeroExit(code, output):
let clipped = output.prefix(240)
return clipped.isEmpty
? "ssh exited with code \(code)"
? "ssh exited with code \(code) (verify host, key, and PATH)"
: "ssh exited with code \(code): \(clipped)"
case let .cliMissingOrFailed(code, output):
let clipped = output.prefix(240)