Skip to content

Commit f51a6f6

Browse files
authored
Merge pull request #1346 from zooba/quote-exception
Adds triple-quotes around exception message so that copy-pasting into…
2 parents f6918d5 + 44f796f commit f51a6f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/Product/VSCommon/Infrastructure/TaskDialog.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static TaskDialog ForException(
5858
EnableHyperlinks = true,
5959
CollapsedControlText = "Show &details",
6060
ExpandedControlText = "Hide &details",
61-
ExpandedInformation = exception.ToString()
61+
ExpandedInformation = "```{0}{1}{0}```".FormatUI(Environment.NewLine, exception)
6262
};
6363
td.Buttons.Add(TaskDialogButton.Close);
6464
if (!string.IsNullOrEmpty(issueTrackerUrl)) {

0 commit comments

Comments
 (0)