fix: surface gateway failure details

This commit is contained in:
Peter Steinberger
2025-12-19 18:48:30 +01:00
parent 77104395ce
commit f929e1b105
2 changed files with 26 additions and 1 deletions

View File

@@ -333,6 +333,18 @@ struct GeneralSettings: View {
.foregroundStyle(.secondary)
}
if let failure = self.gatewayManager.lastFailureReason {
Text("Last failure: \(failure)")
.font(.caption)
.foregroundStyle(.red)
}
if let exitCode = self.gatewayManager.lastExitCode {
Text("Last exit code: \(exitCode)")
.font(.caption2)
.foregroundStyle(.secondary)
}
HStack(spacing: 10) {
Button {
Task { await self.installGateway() }