From 0acc9b196d23130849eb6f0e7e7f7d59d264ed0f Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 5 Oct 2023 21:10:31 +0200 Subject: [PATCH] store: fix error message Signed-off-by: Giuseppe Scrivano --- store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store.go b/store.go index eaa420b2bf..6753b296ff 100644 --- a/store.go +++ b/store.go @@ -3411,7 +3411,7 @@ func (s *store) Shutdown(force bool) ([]string, error) { // so that we reload after a .Shutdown() the same way other processes would. // Shutdown() is basically an error path, so reliability is more important than performance. if _, err2 := s.graphLock.RecordWrite(); err2 != nil { - err = fmt.Errorf("(graphLock.RecordWrite failed: %w", err2) + err = fmt.Errorf("graphLock.RecordWrite failed: %w", err2) } // Do the Cleanup() only after we are sure that the change was recorded with RecordWrite(), so that // the next user picks it.