Repository navigation
Forward errors to clients - #113
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
💤 Files with no reviewable changes (12)
WalkthroughApplication errors are returned without added context, gRPC handlers expose underlying error messages, and negative emulator tests no longer require fixed wrapper-message text. ChangesError propagation
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 `@internal/interface/grpc/handlers/emulator_handler.go`:
- Around line 74-78: Sanitize all errors crossing the gRPC boundary while
retaining raw causes for internal logging. In
internal/interface/grpc/handlers/emulator_handler.go:74-78, map SubmitTx errors
to stable public status messages; at 114-122, 188-192, and 231-239, sanitize
intent, proof-encoding, finalization, on-chain transaction, and encoding errors.
In internal/application/tx.go:97-98, wrap or replace the raw checkScript error
so script bytes and implementation details are not exposed directly.
🪄 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 Plus
Run ID: a180855d-8896-4b14-87a0-64922c39e46e
📒 Files selected for processing (3)
internal/application/signer.gointernal/application/tx.gointernal/interface/grpc/handlers/emulator_handler.go
Summary by CodeRabbit