refactor: Remove is_tmux_server_not_running_error function

This commit is contained in:
Mahmoud-Emad
2025-08-24 18:10:30 +03:00
parent b26893bf45
commit 426a53a50d

View File

@@ -7,24 +7,6 @@ import os
import time
import freeflowuniverse.herolib.ui.console
// Check if error message indicates tmux server is not running
fn is_tmux_server_not_running_error(error_msg string) bool {
// Common tmux server not running error patterns
tmux_not_running_patterns := [
'no server running',
'error connecting to',
'No such file or directory', // when socket doesn't exist
]
error_lower := error_msg.to_lower()
for pattern in tmux_not_running_patterns {
if error_lower.contains(pattern.to_lower()) {
return true
}
}
return false
}
@[heap]
pub struct Tmux {
pub mut: