Skip to content

Commit 0e35a4b

Browse files
committed
feat: fix error handling logic when can't find .tmux-sessionizer file on current directory
1 parent 293931a commit 0e35a4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

handler/handler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ func (sh *SessionHandler) buildParentDirSet() (map[string]struct{}, error) {
245245
}
246246
file, err := os.Open(path)
247247
if err != nil {
248+
if os.IsNotExist(err) {
249+
continue
250+
}
248251
return nil, fmt.Errorf("failed to open config file: %w", err)
249252
}
250253
defer file.Close()

0 commit comments

Comments
 (0)