Skip to content

Commit

Permalink
Improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkelspiel committed Jun 19, 2023
1 parent f786cfb commit d75b2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public T Get<T>()
if (scene != null)
return (T)(dynamic)scene;
else
throw new Exception("Component doesn't exist in entity");
throw new Exception($"Component '{typeof(T)}' doesn't exist in entity");
}

public bool TryGet<T>(out T component)
Expand Down

0 comments on commit d75b2bc

Please sign in to comment.