From 9776f82b457ee8d03183bfecadac42efe5e9b3ae Mon Sep 17 00:00:00 2001 From: Theron Voran Date: Wed, 8 Dec 2021 10:32:49 -0800 Subject: [PATCH] agent/cache: differentiate open log messages (#13362) Changes the error output for the second open of the persistent cache file, to differentiate it from the c.UI.Error message for the initial open of the cache file, just to make it easier to tell where a problem occurred. --- command/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent.go b/command/agent.go index 2870227a30..5cebb729bd 100644 --- a/command/agent.go +++ b/command/agent.go @@ -565,7 +565,7 @@ func (c *AgentCommand) Run(args []string) int { AAD: aad, }) if err != nil { - c.UI.Error(fmt.Sprintf("Error opening persistent cache: %v", err)) + c.UI.Error(fmt.Sprintf("Error opening persistent cache with wrapper: %v", err)) return 1 }