Adding error details to modTimeBlob for debugging#100
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds rblob/errors.go defining four package-level errors for modtime cursor validation. Removes the local error var block from modTimeBlob.go, updates parseModTimeCursor documentation, and changes all parsing-failure wraps to include structured j.MKV metadata (cursor, separators, prefix, nano string, and tail) while preserving the successful parse result and modtimeCursor format. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@rblob/modTimeBlob.go`:
- Around line 187-194: The error wrap currently logs the parsed ints (ns/offset)
which are zero on ParseInt failure; update the error returns in the parsing
block inside the modtimeCursor parsing function (where modtimeCursor{} is
returned) so the j.MKV includes the original input strings nanoStr and tail
instead of ns/offset (i.e., log "nanoStr" and "tail" values) when wrapping with
errModTimeCursorBadUnixNano and errModTimeCursorBadOffset to ensure the
malformed source strings are recorded.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 39dd3809-2d09-416e-a5b4-c88e84fe1e89
📒 Files selected for processing (2)
rblob/errors.gorblob/modTimeBlob.go
|



For External Submissions:
Part of addressing issue #94
Summary by CodeRabbit
Release Notes
Bug Fixes
Documentation