Skip to content

Commit 58fcbbf

Browse files
authored
Improve char group validation again (#2644)
1 parent 3c68f9f commit 58fcbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JoinRpg.DataModel/CharacterGroup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public IEnumerable<ValidationResult> Validate(ValidationContext validationContex
110110
}
111111
if (ParentGroups.Any(pg => pg.CharacterGroupId == CharacterGroupId))
112112
{
113-
yield return new ValidationResult("Character group can't be self-child");
113+
yield return new ValidationResult($"Character group {CharacterGroupId} somehow is self-child. List of parents {string.Join(", ", ParentCharacterGroupIds)}");
114114
}
115115
}
116116
}

0 commit comments

Comments
 (0)