# assertAddPiecesFit

> **assertAddPiecesFit**(`options`): `void`

Defined in: [packages/synapse-core/src/utils/add-pieces-fits.ts:254](https://github.com/FilOzone/synapse-sdk/blob/5989c4b03ed2fe4cf8b1ef29efe1d4ff1ad4c7bc/packages/synapse-core/src/utils/add-pieces-fits.ts#L254)

Throw if `pieces` is empty, a PieceCID is outside Curio's size bounds, or the
list does not fit in one addPieces / createAndAdd message.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | [`LimiterOptions`](/reference/filoz/synapse-core/utils/type-aliases/limiteroptions/) | [assertAddPiecesFit.OptionsType](/reference/filoz/synapse-core/utils/namespaces/assertaddpiecesfit/type-aliases/optionstype/) |

## Returns

`void`

## Throws

Errors [assertAddPiecesFit.ErrorType](/reference/filoz/synapse-core/utils/namespaces/assertaddpiecesfit/type-aliases/errortype/)