Skip to content
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

Error reporting window improvements #216

Merged
merged 11 commits into from
Jun 8, 2023
1 change: 1 addition & 0 deletions CHANGELOG-PRERELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog].
### Added

### Changed
- Improve ErrorReport window on build error `#216`

### Deprecated

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog].
### Added

### Changed
- Improve ErrorReport window on build error `#216`

### Deprecated

Expand Down
8 changes: 6 additions & 2 deletions Internal/ErrorReporter/Editor/BuildReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,14 @@ private class AvatarReportScope : IDisposable
{
public void Dispose()
{
var successful = CurrentReport.CurrentAvatar.successful;
var avatar = CurrentReport.CurrentAvatar;
CurrentReport.CurrentAvatar = null;
var successful = avatar.successful;
BuildReport.SaveReport();
ErrorReportUI.MaybeOpenErrorReportUI();
if (avatar.logs.Any())
ErrorReportUI.OpenErrorReportUIFor(avatar);
else
ErrorReportUI.MaybeOpenErrorReportUI();
if (!successful) throw new Exception("Avatar processing failed");
}
}
Expand Down
Loading