Skip to content

Commit

Permalink
etcdmain: better error msg when detected duplicate id in discovery
Browse files Browse the repository at this point in the history
Conflicts:
	etcdmain/etcd.go
  • Loading branch information
xiang90 authored and yichengq committed May 15, 2015
1 parent 3e4d57c commit 9a0e0c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions etcdmain/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ func Main() {
if err != nil {
switch err {
case discovery.ErrDuplicateID:
log.Fatalf("etcd: member %s has previously registered with discovery service (%s), but the data-dir (%s) on disk cannot be found.",
cfg.name, cfg.durl, cfg.dir)
log.Printf("member %q has previously registered with discovery service token (%s).", cfg.name, cfg.durl)
log.Printf("But etcd could not find vaild cluster configuration in the given data dir (%s).", cfg.dir)
log.Printf("Please check the given data dir path if the previous bootstrap succeeded")
log.Printf("or use a new discovery token if the previous bootstrap failed.")
default:
log.Fatalf("etcd: %v", err)
}
Expand Down

0 comments on commit 9a0e0c2

Please sign in to comment.