debug: surface ssh error details in voice test
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user