[PR #14668] [MERGED] Fix an issue where JsonUtils produces a bad error message #30198

Open
opened 2026-01-31 09:39:17 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14668
Author: @DHowett
Created: 1/11/2023
Status: Merged
Merged: 1/13/2023
Merged by: @undefined

Base: mainHead: dev/duhowett/14373


📝 Commits (1)

  • 3e8cad1 Fix an issue where JsonUtils produces a bad error message

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalSettingsModel/JsonUtils.h (+1 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/14668 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 1/11/2023 **Status:** ✅ Merged **Merged:** 1/13/2023 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/duhowett/14373` --- ### 📝 Commits (1) - [`3e8cad1`](https://github.com/microsoft/terminal/commit/3e8cad103657a1f698941215dd97d56985728630) Fix an issue where JsonUtils produces a bad error message ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsModel/JsonUtils.h` (+1 -1) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:39:17 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30198