From 20a293f64dc73ef34fcec1957deb747a22980aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 17 Jan 2023 08:25:41 +0100 Subject: [PATCH] clean: Warn for cleanup failures due to missing datadir --- cmd/clean.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/clean.go b/cmd/clean.go index 8510815269..46f6d18237 100644 --- a/cmd/clean.go +++ b/cmd/clean.go @@ -67,6 +67,8 @@ func cleanData(env *environment.Environment, names []string, all bool) error { return err } if process == nil { + fmt.Fprintf(os.Stderr, "Can't clean directory due to missing meta file: %s\n", + filepath.Join(dataDir, dir.Name())) continue }