Improve lint error wording

This commit is contained in:
Gustas
2023-04-29 13:46:30 +03:00
committed by Matthias Mailänder
parent 1ac6912c2a
commit 9b71317280
4 changed files with 9 additions and 9 deletions

View File

@@ -42,10 +42,10 @@ namespace OpenRA.Mods.Common.Lint
continue;
if (HasInvalidBounds(interactable.Bounds, grid.TileSize, grid.TileScale))
emitError($"{nameof(interactable.Bounds)} of actor `{actorInfo.Key}` are empty or negative.");
emitError($"{actorInfo.Key}.{interactable.GetType().Name}.{nameof(interactable.Bounds)} are empty or negative.");
if (HasInvalidBounds(interactable.DecorationBounds, grid.TileSize, grid.TileScale))
emitError($"{nameof(interactable.DecorationBounds)} of actor `{actorInfo.Key}` are empty or negative.");
emitError($"{actorInfo.Key}.{interactable.GetType().Name}.{nameof(interactable.DecorationBounds)} are empty or negative.");
}
catch (InvalidOperationException e)
{