Skip to content

Commit

Permalink
refactor: Exit 1 on empty query result
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Apr 8, 2024
1 parent bb49f4a commit 511eba9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ var listCommand = &cobra.Command{
}
}

if len(filenames) == 0 {
fmt.Println("No videos found!")
os.Exit(1)
}
fmt.Println(utils.Multiline(filenames...))
},
}
Expand Down

0 comments on commit 511eba9

Please sign in to comment.