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:
Chris Kim 2021-07-07 16:01:50 -07:00 committed by GitHub
parent a62d143936
commit ada145641c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ func run(app *cli.Context, cfg *cmds.Server) error {
return err
}
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)