Skip to content

Conversation

@moutonjeremy
Copy link
Member

Improve error messages by trimming whitespace from expected and actual types in type mismatch errors. This change enhances clarity and consistency in error reporting.

Copilot AI review requested due to automatic review settings December 3, 2025 14:31
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 improves error message formatting by ensuring whitespace is trimmed from type information extracted during JSON unmarshaling error handling. The changes make error messages cleaner and more consistent when reporting type mismatches.

Key Changes:

  • Added whitespace trimming to extracted expected and actual type strings in error messages
  • Updated code comments to reflect the whitespace trimming behavior

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

@moutonjeremy moutonjeremy merged commit 503eb01 into main Dec 3, 2025
9 of 10 checks passed
@moutonjeremy moutonjeremy deleted the chore-cleaning-message-returned branch December 3, 2025 14:34
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