-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix an issue where JsonUtils produces a bad error message #14668
Conversation
CascadiaSettings relies on getting a JsonUtils::DeserializationException from the various JSON Utility functions, and then formatting that into an error message. Well, DeserializationException tries to include an object representation in its what() message . . . and generates an exception trying to do so. CascadiaSettings never gets the DeserializationException, and displays a weird message. Fixes #14373
@msftbot merge this in 7 minutes |
Hello @DHowett! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
CascadiaSettings relies on getting a JsonUtils::DeserializationException from the various JSON Utility functions, and then formatting that into an error message. Well, DeserializationException tries to include an object representation in its what() message . . . and generates an exception trying to do so. CascadiaSettings never gets the DeserializationException, and displays a weird message. It's safe to remove the stringification in DeserializationException because CascadiaSettings was never using it (_and_ because CascadiaSettings was using an even better version of the same logic.) Fixes #14373 (cherry picked from commit 239b4d1) Service-Card-Id: 87568498 Service-Version: 1.16
🎉 Handy links: |
🎉 Handy links: |
CascadiaSettings relies on getting a JsonUtils::DeserializationException
from the various JSON Utility functions, and then formatting that into
an error message. Well, DeserializationException tries to include an
object representation in its what() message . . . and generates an
exception trying to do so. CascadiaSettings never gets the
DeserializationException, and displays a weird message.
It's safe to remove the stringification in DeserializationException
because CascadiaSettings was never using it (and because
CascadiaSettings was using an even better version of the same logic.)
Fixes #14373