Skip to content

Commit

Permalink
added world parameter name in exception for WorldComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Doraku committed Jun 9, 2021
1 parent d26c315 commit f3d5593
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void AddConstructorParameter(ITypeSymbol t, string name)
foreach ((string memberType, string memberName) in worldComponents)
{
code.Append(" ").Append(memberName).Append(" = world.Has<").Append(memberType).Append(">() ? world.Get<").Append(memberType)
.Append(">() : throw new ArgumentException(\"Underlying World does not have a component of type ").Append(memberType).AppendLine("\");");
.Append(">() : throw new ArgumentException(\"Underlying World does not have a component of type ").Append(memberType).AppendLine("\", \"world\");");
}
code.AppendLine(" }");
}
Expand Down

0 comments on commit f3d5593

Please sign in to comment.