From 6912c34b5880981c4c104dc50a32d0fe7600f4c0 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Mon, 22 Feb 2021 08:24:56 -0500 Subject: [PATCH] cmd: ignore missing wal in debug kill command (#6160) closes: #6159 --- cmd/tendermint/commands/debug/kill.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/tendermint/commands/debug/kill.go b/cmd/tendermint/commands/debug/kill.go index a2c7a5fe1..9a12cc77a 100644 --- a/cmd/tendermint/commands/debug/kill.go +++ b/cmd/tendermint/commands/debug/kill.go @@ -79,7 +79,11 @@ func killCmdHandler(cmd *cobra.Command, args []string) error { logger.Info("copying node WAL...") if err := copyWAL(conf, tmpDir); err != nil { - return err + if !os.IsNotExist(err) { + return err + } + + logger.Info("node WAL does not exist; continuing...") } logger.Info("copying node configuration...")