refactor: duplicate identifier error

This commit is contained in:
Ilia Denisov
2026-02-11 09:46:24 +02:00
parent 6e84cc3c51
commit 5697d0ad57
9 changed files with 19 additions and 11 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ func (c *Cache) createFleet(ri int, name string) (int, error) {
return 0, e.NewEntityTypeNameValidationError("%q", n)
}
if _, ok := c.fleetIndex(ri, n); ok {
return 0, e.NewEntityTypeNameDuplicateError("fleet %q", n)
return 0, e.NewEntityDuplicateIdentifierError("fleet %q", n)
}
fleets := slices.Clone(c.g.Fleets)
fleets = append(fleets, game.Fleet{