mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +00:00
Add error logging to SessionRow terminate function
Previously, when session termination failed from the X button in the list view, the error was silently swallowed. This made it difficult to diagnose why termination might fail compared to the menu action which has proper logging. Now both termination paths log errors consistently, making debugging easier.
This commit is contained in:
parent
dfe0cfda25
commit
cae76b6fae
1 changed files with 1 additions and 0 deletions
|
|
@ -360,6 +360,7 @@ struct SessionRow: View {
|
|||
// The session monitor will automatically update
|
||||
} catch {
|
||||
// Handle error
|
||||
Self.logger.error("Failed to terminate session \(session.key): \(error)")
|
||||
await MainActor.run {
|
||||
isTerminating = false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue