mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #2963 from xiang90/fix_discovery_error
etcdmain: exit if discovery fails
This commit is contained in:
@@ -112,6 +112,7 @@ func Main() {
|
||||
plog.Errorf("But etcd could not find vaild cluster configuration in the given data dir (%s).", cfg.dir)
|
||||
plog.Infof("Please check the given data dir path if the previous bootstrap succeeded")
|
||||
plog.Infof("or use a new discovery token if the previous bootstrap failed.")
|
||||
os.Exit(1)
|
||||
default:
|
||||
plog.Fatalf("%v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user