cmd/search.go
changeset 47 82d8b6074309
parent 45 b58a7ea1aeb2
child 81 b1671f83e91b
--- a/cmd/search.go	Sun Apr 30 23:22:09 2017 +0200
+++ b/cmd/search.go	Sun Apr 30 23:35:49 2017 +0200
@@ -6,6 +6,7 @@
 package cmd
 
 import (
+	"os"
 	"strings"
 
 	"github.com/pkg/errors"
@@ -46,7 +47,7 @@
 	results, err := gClient.Search(strings.Join(args, " "), opt.resolve)
 	if err != nil {
 		errPrint("Error: %s", err.Error())
-		return nil
+		os.Exit(1)
 	}
 
 	p, err := getPrinter()