When no matches found, return error instead of printing no matches found

pull/706/head
vaikas-google 8 years ago
parent 726312c915
commit 5a7e55ac62

@ -37,7 +37,7 @@ func search(cmd *cobra.Command, args []string) error {
fmt.Println(result)
}
} else {
cmd.Println("No matches found")
return errors.New("No matches found")
}
return nil
}

Loading…
Cancel
Save