diff --git a/internal/eval/eval_test.go b/internal/eval/eval_test.go index 03cd0df6f..58a37ea04 100644 --- a/internal/eval/eval_test.go +++ b/internal/eval/eval_test.go @@ -3957,11 +3957,11 @@ func testEvalLPOP(t *testing.T, store *dstore.Store) { }, "non-integer count": { input: []string{"k", "abc"}, - migratedOutput: EvalResponse{Result: nil, Error: errors.New("ERR value is not an integer or a float")}, + migratedOutput: EvalResponse{Result: nil, Error: errors.New("value is out of range, must be positive")}, }, "negative count": { input: []string{"k", "-1"}, - migratedOutput: EvalResponse{Result: nil, Error: errors.New("ERR value is not an integer or out of range")}, + migratedOutput: EvalResponse{Result: nil, Error: errors.New("value is out of range, must be positive")}, }, "key with different type": { setup: func() { diff --git a/internal/eval/store_eval.go b/internal/eval/store_eval.go index 691acee5a..ce415ef2e 100644 --- a/internal/eval/store_eval.go +++ b/internal/eval/store_eval.go @@ -3198,7 +3198,7 @@ func popElements(args []string, store *dstore.Store, direction string) *EvalResp if err != nil { return &EvalResponse{ Result: nil, - Error: diceerrors.ErrInvalidNumberFormat, + Error: diceerrors.ErrValueMustBePositive, } } if nos == 0 {