refactor: duplicate identifier error
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user