(typeName, typeDescription, expectedSize string)
| 21 | ) |
| 22 | |
| 23 | func errInvalidSize(typeName, typeDescription, expectedSize string) *errors.Definition { |
| 24 | return errors.DefineInvalidArgument( |
| 25 | fmt.Sprintf("%s_size", typeName), |
| 26 | fmt.Sprintf("invalid %s size of {size} bytes, expected %s bytes", typeDescription, expectedSize), |
| 27 | ) |
| 28 | } |
no test coverage detected