Skip to content

Commit

Permalink
Fixed fmt.Errorf format error
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinmwinuka committed Feb 3, 2024
1 parent 16892ab commit 9fd074d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/sorted_set/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9fd074d

Please sign in to comment.