Skip to content

Commit 6402b82

Browse files
adding exit code to error handling (#195)
1 parent dd8929a commit 6402b82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/search/search.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func SearchCommand() {
3939
p := tea.NewProgram(initialModel())
4040
if _, err := p.Run(); err != nil {
4141
fmt.Println("could not start program:", err)
42+
os.Exit(1)
4243
}
4344
}
4445

0 commit comments

Comments
 (0)