Skip to content

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

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.

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