diff --git a/verbs.go b/verbs.go index fe237aa..0495555 100644 --- a/verbs.go +++ b/verbs.go @@ -455,10 +455,8 @@ func (c *Client) Add[T any](key string, item T, opts ...Option) error { return nil case "NOT_STORED\r\n": return ErrNotStored - case "EXISTS\r\n": - return ErrConflict default: - return fmt.Errorf("memc: unexpected response to set: %q", string(line)) + return fmt.Errorf("memc: unexpected response to add: %q", string(line)) } }) }