mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Update etcd snapshot error message to be more informative when etcd database is not found (#3568)
Signed-off-by: Chris Kim <oats87g@gmail.com>
This commit is contained in:
parent
a62d143936
commit
ada145641c
@ -89,7 +89,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
Block a user