Skip to content

Ensure error code order stays consistent#2157

Merged
0xahzam merged 1 commit intomasterfrom
fix-error-code-order
Mar 23, 2026
Merged

Ensure error code order stays consistent#2157
0xahzam merged 1 commit intomasterfrom
fix-error-code-order

Conversation

@0xahzam
Copy link
Contributor

@0xahzam 0xahzam commented Mar 23, 2026

Summary by CodeRabbit

  • Chores
    • Reorganized internal error handling structures.

@coderabbitai
Copy link

coderabbitai bot commented Mar 23, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9d7b0f2a-0e99-40f4-94f9-11341bd544c7

📥 Commits

Reviewing files that changed from the base of the PR and between f1dbac5 and f642c7d.

📒 Files selected for processing (1)
  • programs/drift/src/error.rs

Walkthrough

The InvalidInsuranceFundWithdrawalRecipient error variant was relocated to a different position within the ErrorCode enum in the error definitions module, with the variant name and associated message string remaining unchanged.

Changes

Cohort / File(s) Summary
Error Code Reordering
programs/drift/src/error.rs
Moved InvalidInsuranceFundWithdrawalRecipient variant to a different position within the ErrorCode enum; variant name and message unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~1 minute

Poem

🐰 An error hops from here to there,
Its message stays with utmost care,
A shift in place, but not in worth—
The enum reshuffles, rebirth! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: reordering an error code variant to maintain consistent ordering within the ErrorCode enum.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@0xahzam 0xahzam merged commit fe48d95 into master Mar 23, 2026
12 checks passed
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.

1 participant