From ada145641c2fd56c4b170ef6810804125e4b946c Mon Sep 17 00:00:00 2001 From: Chris Kim <30601846+Oats87@users.noreply.github.com> Date: Wed, 7 Jul 2021 16:01:50 -0700 Subject: [PATCH] Update etcd snapshot error message to be more informative when etcd database is not found (#3568) Signed-off-by: Chris Kim --- pkg/cli/etcdsnapshot/etcd_snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cli/etcdsnapshot/etcd_snapshot.go b/pkg/cli/etcdsnapshot/etcd_snapshot.go index 0b738c0e0f..c2d23fff96 100644 --- a/pkg/cli/etcdsnapshot/etcd_snapshot.go +++ b/pkg/cli/etcdsnapshot/etcd_snapshot.go @@ -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)