Skip to content

Comments

Remove code from content presenter when not in DEBUG#3935

Merged
marinofaggiana merged 1 commit intomasterfrom
remove-code-release-error
Jan 12, 2026
Merged

Remove code from content presenter when not in DEBUG#3935
marinofaggiana merged 1 commit intomasterfrom
remove-code-release-error

Conversation

@mpivchev
Copy link
Collaborator

Showing the error code in error messages is way too technical and should not be shown to users. This PR hides the error code if not #DEBUG

Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR conditionally hides technical error codes from user-facing error messages in production builds while keeping them visible in DEBUG builds for development purposes. This improves the user experience by removing overly technical information from error messages shown to end users.

Key Changes:

  • Added conditional compilation to show error codes only in DEBUG builds
  • Production builds now display only the localized error description without the error code

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marinofaggiana marinofaggiana merged commit 645dc1c into master Jan 12, 2026
11 checks passed
@marinofaggiana marinofaggiana deleted the remove-code-release-error branch January 12, 2026 10:49
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.

2 participants