Commit 6ff1d3c8 authored by Brian Tiger Chow's avatar Brian Tiger Chow

better error

parent b1fb213a
......@@ -3,6 +3,7 @@ package main
import (
"errors"
"flag"
"fmt"
"log"
"os"
"os/signal"
......@@ -67,7 +68,7 @@ func run() error {
case "redis":
redisClient, err := redis.Dial("tcp", *redisHost)
if err != nil {
return err
return fmt.Errorf("could not connect to redis: %s", err)
}
if *redisPassword != "" {
if err := redisClient.Cmd("AUTH", *redisPassword).Err; err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment