Skip to content

Commit 880672f

Browse files
authored
Merge pull request #1 from TlexCypher/feat/fix-create-errors
Fix error handling logic when can't find .tmux-sessionizer on current directory
2 parents 293931a + 0e35a4b commit 880672f

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)