From c5ffe57366f09a99d42941ccb8d4452548b26ce9 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Tue, 18 Jul 2023 11:53:25 -0700 Subject: [PATCH] Better error message to differentiate from similar one --- internal/pkg/agent/cmd/watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/agent/cmd/watch.go b/internal/pkg/agent/cmd/watch.go index c976b966db0..b3c29509471 100644 --- a/internal/pkg/agent/cmd/watch.go +++ b/internal/pkg/agent/cmd/watch.go @@ -116,7 +116,7 @@ func watchCmd(log *logp.Logger, cfg *configuration.Configuration) error { removeMarker := !isWindows() err = upgrade.Cleanup(log, marker.Hash, removeMarker, false) if err != nil { - log.Error("cleanup failed", err) + log.Error("cleanup after successful watch failed", err) } return err }