mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-04 13:45:04 +08:00
fix: error report not displayed upon failure (#532)
This commit is contained in:
parent
e81ce64881
commit
b48555e2e0
@ -25,6 +25,13 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
{
|
{
|
||||||
toDispose?.Dispose();
|
toDispose?.Dispose();
|
||||||
toDispose = null;
|
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)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user