Skip to content

Commit

Permalink
improve usage for discovery
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Vieux <[email protected]>
  • Loading branch information
vieux committed Aug 1, 2015
1 parent bf4bb80 commit 28bc55e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Arguments:
* etcd://<ip1>,<ip2>/<path>
* file://path/to/file
* zk://<ip1>,<ip2>/<path>
* <ip1>,<ip2>{{end}}{{if .Flags}}
* [nodes://]<ip1>,<ip2>{{end}}{{if .Flags}}
Options:
{{range .Flags}}{{.}}
Expand Down
3 changes: 2 additions & 1 deletion discovery/nodes/nodes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package nodes

import (
"fmt"
"strings"
"time"

Expand All @@ -27,7 +28,7 @@ func (s *Discovery) Initialize(uris string, _ time.Duration, _ time.Duration) er
for _, ip := range discovery.Generate(input) {
entry, err := discovery.NewEntry(ip)
if err != nil {
return err
return fmt.Errorf("%s, please check you are using the correct discovery (missing token:// ?)", err.Error())
}
s.entries = append(s.entries, entry)
}
Expand Down

0 comments on commit 28bc55e

Please sign in to comment.