Search: Properly exit on error

Tento commit je obsažen v:
lawl 2021-04-05 09:53:25 +02:00
rodič da945dce2d
revize 54697be895

Zobrazit soubor

@ -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)