Skip to content

Correct typo in ERROR_PRIVILEGED_REQUEST - #2377

Open
bramoosterhuis wants to merge 5 commits into
masterfrom
feature/fix-typo-in-error-definition
Open

bramoosterhuis wants to merge 5 commits into
masterfrom
feature/fix-typo-in-error-definition

Conversation

@bramoosterhuis

Copy link
Copy Markdown
Contributor

Fix typo in ERROR_PRIVILEGED_REQUEST definition and add alias.

Fix typo in ERROR_PRIVILEGED_REQUEST definition and add alias.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The alias in Errors.h is declared before ErrorCodes and ERROR_PRIVILEGED_REQUEST, causing compilation failures when the header is included.

1 open issue
What changed in this PR

Corrects a core error-code spelling while preserving the old name for compatibility.

Changes:

  • Renames the error to ERROR_PRIVILEGED_REQUEST, retaining value 24.
  • Adds an alias for the misspelled name.
File Description
Source/​core/​Errors.h Corrects the error name and adds a compatibility alias.

Review effort: Balanced

Comment thread Source/core/Errors.h Resolved
Mark ERROR_PRIVILIGED_REQUEST as deprecated for clarity.
Copilot AI balanced review requested due to automatic review settings December 5, 2026 11:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The alias in Source/core/Errors.h references ErrorCodes and ERROR_PRIVILEGED_REQUEST before they are declared, causing compilation to fail when the header is included.

1 open issue

Review effort: Balanced

Comment thread Source/core/Errors.h Resolved
Copilot AI balanced review requested due to automatic review settings December 5, 2026 19:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The namespace-level alias breaks compilation for existing Core::ErrorCodes::ERROR_PRIVILIGED_REQUEST references and must remain inside ErrorCodes to preserve compatibility.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread Source/core/Errors.h Resolved
Copilot AI balanced review requested due to automatic review settings December 5, 2026 20:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

A missing comma after ERROR_COUNT in Source/core/Errors.h prevents compilation of every translation unit that includes it.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread Source/core/Errors.h Resolved
Copilot AI balanced review requested due to automatic review settings December 5, 2026 20:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for the error-constant spelling correction and deprecated compatibility alias.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

This branch has not been deployed

No deployments
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