joshmedeski / sesh

Smart session manager for the terminal
MIT License
417 stars 17 forks source link

Error Handling in connect.Connect #31

Closed tanishqmanuja closed 5 months ago

tanishqmanuja commented 5 months ago

I found it very difficult to debug bc it always returns nil error

func Connect(choice string, alwaysSwitch bool, command string) error {
    session := session.Determine(choice)
    zoxide.Add(session.Path)
    tmux.Connect(tmux.TmuxSession{
        Name: session.Name,
        Path: session.Path,
    }, alwaysSwitch, command)
    return nil  // <--problem
}