🐛 don't report error for no sessions
This commit is contained in:
parent
90d2ed7300
commit
93c49520ed
@ -46,7 +46,7 @@ func (t *Tmux) ListSessions() []string {
|
|||||||
sessions := []string{}
|
sessions := []string{}
|
||||||
result, err := t.Exec("ls", "-F", "#{session_name}")
|
result, err := t.Exec("ls", "-F", "#{session_name}")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Error:", err)
|
// No active sessions returns as an error.
|
||||||
return sessions
|
return sessions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user