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
Chris Kim 2021-07-08 15:01:05 -07:00 committed by GitHub
parent 65b9fbaa2b
commit 42ab13a869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)