cmd: planet production
This commit is contained in:
@@ -31,6 +31,7 @@ const (
|
||||
ErrInputShipTypeWeaponsAndArmamentValue
|
||||
ErrInputShipTypeZeroValues
|
||||
ErrInputScienceSumValues
|
||||
ErrInputProductionInvalid
|
||||
)
|
||||
|
||||
func GenericErrorText(code int) string {
|
||||
@@ -77,6 +78,8 @@ func GenericErrorText(code int) string {
|
||||
return "Science in production on the Planet"
|
||||
case ErrInputScienceSumValues:
|
||||
return "Science proportions sum should be equal 1"
|
||||
case ErrInputProductionInvalid:
|
||||
return "Invalid Production type"
|
||||
default:
|
||||
return fmt.Sprintf("Undescribed error with code %d", code)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user