Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
6ff1d3c8
Commit
6ff1d3c8
authored
10 years ago
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better error
parent
b1fb213a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cmd/ipfs_routingd/main.go
cmd/ipfs_routingd/main.go
+2
-1
No files found.
cmd/ipfs_routingd/main.go
View file @
6ff1d3c8
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment