Skip to content

Conversation

@AvivDavid23
Copy link
Contributor

@AvivDavid23 AvivDavid23 commented Jan 21, 2026

  • path info

  • value types

  • query compilation error

  • query compilation error

  • cleaning up

  • stop using Error when we have RedisError


Note

Unifies error handling and messaging across the JSON module and json_path.

  • Replace custom Error with RedisError/RedisResult throughout (commands, manager, ivalue_manager, key_value, backward); remove redis_json/src/error.rs
  • Add concise helpers err_invalid_path, err_invalid_path_or, err_json; simplify error text (no path/value echoes); adjust tests accordingly
  • Map QueryCompilationError to RedisError and improve messages; minor wording fixes in json_path
  • Update function signatures and generics to use RedisResult; small refactors for RESP2/RESP3 replies
  • Add redis-module dep to json_path; standardize imports
  • Bump redis_json to 2.8.17 and refresh dependencies

Written by Cursor Bugbot for commit 911f4b2. This will update automatically on new commits. Configure here.

* path info

* value types

* query compilation error

* query compilation error

* cleaning up

* stop using Error when we have RedisError
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

message: final_msg,
})
let message = format!("Error at position {}: {}", location, msg);
Err(QueryCompilationError { location, message })
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate position information in query compilation error messages

Medium Severity

The error message contains duplicated position information. Line 177 constructs message as "Error at position {location}: {msg}", but the Display impl (lines 113-120) also prepends "Error occurred at position {location}, ". This produces output like "Error occurred at position 5, Error at position 5: expected one of..." where the position appears twice.

Additional Locations (1)

Fix in Cursor Fix in Web

@AvivDavid23 AvivDavid23 merged commit c037684 into 2.8 Jan 21, 2026
18 of 19 checks passed
@AvivDavid23 AvivDavid23 deleted the 2.8_cp_logss branch January 21, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants