Skip to content

Commit

Permalink
fix: fixing unity crash on StackOverflowException (#2146)
Browse files Browse the repository at this point in the history
StackOverflowException was causing unity to crash while running weaver 
tests, using inner exception seems to fix that issue
  • Loading branch information
James-Frowen committed Aug 7, 2020
1 parent ddc6139 commit ec54ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirror/Editor/Weaver/Weaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static bool WeaveModule(ModuleDefinition moduleDefinition)
catch (Exception ex)
{
Error(ex.ToString());
throw;
throw new Exception(ex.Message, ex);
}
}

Expand Down

0 comments on commit ec54ee6

Please sign in to comment.