[PR #265] Wrap file system export write in try/catch. #24094

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

Original Pull Request: https://github.com/microsoft/terminal/pull/265

State: closed
Merged: Yes


@adiviness tried writing on a non-writeable network share and got a nice stack exception dump off the top.

As such, I'll wrap this with a try/catch and print the error message when the StreamWriter fails. He got an access denied, but I can think of a good dozen reasons this would fail. A catch all should be fine for now.

Also the string should be pre-localized.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/265 **State:** closed **Merged:** Yes --- @adiviness tried writing on a non-writeable network share and got a nice stack exception dump off the top. As such, I'll wrap this with a try/catch and print the error message when the StreamWriter fails. He got an access denied, but I can think of a good dozen reasons this would fail. A catch all should be fine for now. Also the string should be pre-localized.
claunia added the pull-request label 2026-01-31 09:01:21 +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#24094