fix: error report not displayed upon failure (#532)

This commit is contained in:
bd_ 2023-11-15 21:07:48 +09:00 committed by GitHub
parent e81ce64881
commit b48555e2e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,13 @@ namespace nadena.dev.modular_avatar.core.editor
{
toDispose?.Dispose();
toDispose = null;
if (BuildReport.CurrentReport?.CurrentAvatar?.successful == false)
{
// This is a bit of a temporary hack until we have a better way to report errors via NDMF
ErrorReportUI.OpenErrorReportUI();
throw new Exception("Errors occurred during modular avatar processing");
}
}
catch (Exception e)
{