1
0
duplikat dari https://github.com/quitesimpleorg/hs9001.git synced 2024-11-25 03:32:36 +01:00

Search: Properly exit on error

This commit is contained in:
lawl 2021-04-05 09:53:25 +02:00
orang tua da945dce2d
melakukan 54697be895

Melihat File

@ -156,6 +156,7 @@ func main() {
} else if cmd == "search" {
if argslen < 2 {
fmt.Fprint(os.Stderr, "Please provide the search query\n")
os.Exit(1)
}
q := strings.Join(args[1:], " ")
search(conn, q)