mirror of https://github.com/k3s-io/k3s
Update etcd snapshot error message to be more informative when etcd database is not found (#3592)
Signed-off-by: Chris Kim <oats87g@gmail.com>pull/3610/head
parent
65b9fbaa2b
commit
42ab13a869
|
@ -88,7 +88,7 @@ func run(app *cli.Context, cfg *cmds.Server) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if !initialized {
|
if !initialized {
|
||||||
return errors.New("managed etcd database has not been initialized")
|
return fmt.Errorf("etcd database not found in %s", dataDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
cluster := cluster.New(&serverConfig.ControlConfig)
|
cluster := cluster.New(&serverConfig.ControlConfig)
|
||||||
|
|
Loading…
Reference in New Issue