Skip to content

Commit

Permalink
Improve char group validation again (#2644)
Browse files Browse the repository at this point in the history
  • Loading branch information
leotsarev authored May 22, 2024
1 parent 3c68f9f commit 58fcbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JoinRpg.DataModel/CharacterGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public IEnumerable<ValidationResult> Validate(ValidationContext validationContex
}
if (ParentGroups.Any(pg => pg.CharacterGroupId == CharacterGroupId))
{
yield return new ValidationResult("Character group can't be self-child");
yield return new ValidationResult($"Character group {CharacterGroupId} somehow is self-child. List of parents {string.Join(", ", ParentCharacterGroupIds)}");
}
}
}
Expand Down

0 comments on commit 58fcbbf

Please sign in to comment.