Skip to content

Commit

Permalink
Exception reporting now available using proper template. Reporting fr…
Browse files Browse the repository at this point in the history
…om ExceptionHandler will auto fill the Exception Report field.
  • Loading branch information
ItsEasyActually committed Jan 31, 2025
1 parent 4ff5434 commit 3d339ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/03-exception-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body:
id: ex-report
attributes:
label: Exception Report
description: Please paste your Exception Report here. Include any additional crash related files here.
description: Please share your Exception Report is here. You can include any additional crash related files here.
validations:
required: true
- type: textarea
Expand Down
5 changes: 2 additions & 3 deletions SA-Mod-Manager/UI/ExceptionHandler.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,8 @@ private void ReportError_Click(object sender, RoutedEventArgs e)
Clipboard.SetText(SettingsReport());

string url = "https://github.com/X-Hax/SA-Mod-Manager/issues/new";
url += $"?title=[Error+Report]:"; // Add Title
url += $"&labels=exception+report"; // Add Label
url += $"&body={Uri.EscapeDataString(ExceptionReport(true, true))}"; // Add Body
url += $"?template=03-exception-report.yml"; // Add template
url += $"&ex-report={Uri.EscapeDataString(ExceptionReport(true, true))}"; // Add Body

var ps = new ProcessStartInfo(url)
{
Expand Down

0 comments on commit 3d339ba

Please sign in to comment.