From 9fd074df03899549dd88f4df0fe6df7e5e91df86 Mon Sep 17 00:00:00 2001 From: Kelvin Clement Mwinuka Date: Sat, 3 Feb 2024 08:28:35 +0800 Subject: [PATCH] Fixed fmt.Errorf format error --- src/modules/sorted_set/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sorted_set/commands.go b/src/modules/sorted_set/commands.go index 53c27f10..4d9a37b9 100644 --- a/src/modules/sorted_set/commands.go +++ b/src/modules/sorted_set/commands.go @@ -140,7 +140,7 @@ func handleZADD(ctx context.Context, cmd []string, server utils.Server, conn *ne defer server.KeyUnlock(key) set, ok := server.GetValue(key).(*SortedSet) if !ok { - return nil, fmt.Errorf("value at %s is not a sorted set") + return nil, fmt.Errorf("value at %s is not a sorted set", key) } count, err := set.AddOrUpdate(members, updatePolicy, comparison, changed, incr) if err != nil {