Skip to content

Commit e6ba569

Browse files
authored
Merge pull request #6675 from minetoblend/fix/missing-nameof
Add missing `nameof` to exception message
2 parents bc0a32f + 7e2f91d commit e6ba569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osu.Framework/Graphics/Containers/TextFlowContainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ static Axes toAxes(FillDirection direction)
535535
// Things will be accounted for accurately later.
536536
// All calls to `spacingFactor()` in the original code thus reduce to returning (0,0).
537537
if (c.RelativeAnchorPosition != Vector2.Zero)
538-
throw new InvalidOperationException($"All drawables in a {nameof(TextFlowContainer)} must not specify custom {RelativeAnchorPosition}s. Only (0,0) is supported.");
538+
throw new InvalidOperationException($"All drawables in a {nameof(TextFlowContainer)} must not specify custom {nameof(RelativeAnchorPosition)}s. Only (0,0) is supported.");
539539
if (c.RelativeOriginPosition != Vector2.Zero)
540-
throw new InvalidOperationException($"All drawables in a {nameof(TextFlowContainer)} must not specify custom {RelativeOriginPosition}s. Only (0,0) is supported.");
540+
throw new InvalidOperationException($"All drawables in a {nameof(TextFlowContainer)} must not specify custom {nameof(RelativeOriginPosition)}s. Only (0,0) is supported.");
541541

542542
// Populate running variables with sane initial values.
543543
if (i == 0)

0 commit comments

Comments
 (0)